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

Method constructor

yaml/_loader_state.ts:230–245  ·  view source on GitHub ↗
(
    input: string,
    {
      schema = DEFAULT_SCHEMA,
      onWarning,
      allowDuplicateKeys = false,
    }: LoaderStateOptions,
  )

Source from the content-addressed store, hash-verified

228 anchorMap = new Map();
229
230 constructor(
231 input: string,
232 {
233 schema = DEFAULT_SCHEMA,
234 onWarning,
235 allowDuplicateKeys = false,
236 }: LoaderStateOptions,
237 ) {
238 this.#scanner = new Scanner(input);
239 this.onWarning = onWarning;
240 this.allowDuplicateKeys = allowDuplicateKeys;
241 this.implicitTypes = schema.implicitTypes;
242 this.typeMap = schema.typeMap;
243
244 this.readIndent();
245 }
246
247 skipWhitespaces() {
248 let ch = this.#scanner.peek();

Callers

nothing calls this directly

Calls 1

readIndentMethod · 0.95

Tested by

no test coverage detected