(
input: string,
{
schema = DEFAULT_SCHEMA,
onWarning,
allowDuplicateKeys = false,
}: LoaderStateOptions,
)
| 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(); |
nothing calls this directly
no test coverage detected