MCPcopy Create free account
hub / github.com/json5/json5 / invalidChar

Function invalidChar

lib/parse.js:1050–1056  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

1048// }
1049
1050function invalidChar (c) {
1051 if (c === undefined) {
1052 return syntaxError(`JSON5: invalid end of input at ${line}:${column}`)
1053 }
1054
1055 return syntaxError(`JSON5: invalid character '${formatChar(c)}' at ${line}:${column}`)
1056}
1057
1058function invalidEOF () {
1059 return syntaxError(`JSON5: invalid end of input at ${line}:${column}`)

Callers 15

commentFunction · 0.85
multiLineCommentFunction · 0.85
multiLineCommentAsteriskFunction · 0.85
valueFunction · 0.85
identifierNameEscapeFunction · 0.85
signFunction · 0.85
decimalPointLeadingFunction · 0.85
decimalExponentFunction · 0.85
decimalExponentSignFunction · 0.85
hexadecimalFunction · 0.85
stringFunction · 0.85

Calls 2

syntaxErrorFunction · 0.85
formatCharFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…