MCPcopy Create free account
hub / github.com/denoland/std / readIndent

Method readIndent

yaml/_loader_state.ts:266–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264 }
265
266 readIndent() {
267 let ch = this.#scanner.peek();
268 while (ch === SPACE) {
269 this.lineIndent += 1;
270 this.#scanner.next();
271 ch = this.#scanner.peek();
272 }
273 }
274
275 #createError(message: string): YamlSyntaxError {
276 const offset = this.#scanner.position;

Callers 2

constructorMethod · 0.95
skipSeparationSpaceMethod · 0.95

Calls 2

peekMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected