MCPcopy
hub / github.com/ajv-validator/ajv / parsingError

Function parsingError

lib/compile/jtd/parse.ts:407–411  ·  view source on GitHub ↗
({gen, parseName}: ParseCxt, msg: Code)

Source from the content-addressed store, hash-verified

405}
406
407function parsingError({gen, parseName}: ParseCxt, msg: Code): void {
408 gen.assign(_`${parseName}.message`, msg)
409 gen.assign(_`${parseName}.position`, N.jsonPos)
410 gen.return(undef)
411}

Callers 5

parseDiscriminatorFunction · 0.85
parseSchemaPropertiesFunction · 0.85
parseTypeFunction · 0.85
partialParseFunction · 0.85
jsonSyntaxErrorFunction · 0.85

Calls 3

_Function · 0.90
assignMethod · 0.80
returnMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…