MCPcopy Index your code
hub / github.com/json5/json5 / invalidIdentifier

Function invalidIdentifier

lib/parse.js:1072–1075  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1070// }
1071
1072function invalidIdentifier () {
1073 column -= 5
1074 return syntaxError(`JSON5: invalid identifier character at ${line}:${column}`)
1075}
1076
1077function separatorChar (c) {
1078 console.warn(`JSON5: '${formatChar(c)}' in strings is not valid ECMAScript; consider escaping`)

Callers 2

identifierNameEscapeFunction · 0.85

Calls 1

syntaxErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…