MCPcopy
hub / github.com/nodeca/js-yaml / throwError

Function throwError

src/parser/parser.ts:237–239  ·  view source on GitHub ↗
(state: ParserState, message: string)

Source from the content-addressed store, hash-verified

235}
236
237function throwError (state: ParserState, message: string): never {
238 throwErrorAt(state.input.slice(0, state.length), state.position, message, state.filename)
239}
240
241function isEol (c: number) {
242 return c === 0x0A/* LF */ || c === 0x0D/* CR */

Callers 15

checkPrintableFunction · 0.70
readTagPropertyFunction · 0.70
readAnchorPropertyFunction · 0.70
readAliasFunction · 0.70
readFlowScalarBreakFunction · 0.70
readSingleQuotedScalarFunction · 0.70
readDoubleQuotedScalarFunction · 0.70
readBlockScalarFunction · 0.70
skipFlowSeparationSpaceFunction · 0.70
readFlowCollectionFunction · 0.70
readBlockSequenceFunction · 0.70
readBlockMappingFunction · 0.70

Calls 1

throwErrorAtFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…