Skip to content

UnexpectedInputResult

Defined in: src/runtime/diagnostics.ts:113

A prefix parsed, but trailing input remains.

code: "UNEXPECTED_INPUT"

Defined in: src/runtime/diagnostics.ts:114


message: string

Defined in: src/runtime/diagnostics.ts:115


position: number

Defined in: src/runtime/diagnostics.ts:117

0-based offset of the trailing input


found: string

Defined in: src/runtime/diagnostics.ts:119

The next few characters at position


optional expected?: readonly string[]

Defined in: src/runtime/diagnostics.ts:122

Tokens that could have continued the parse — present only when the parser got exactly this far