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

Function identifierNameStartEscape

lib/parse.js:312–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310 },
311
312 identifierNameStartEscape () {
313 if (c !== 'u') {
314 throw invalidChar(read())
315 }
316
317 read()
318 const u = unicodeEscape()
319 switch (u) {
320 case '$':
321 case '_':
322 break
323
324 default:
325 if (!util.isIdStartChar(u)) {
326 throw invalidIdentifier()
327 }
328
329 break
330 }
331
332 buffer += u
333 lexState = 'identifierName'
334 },
335
336 identifierName () {
337 switch (c) {

Callers

nothing calls this directly

Calls 4

invalidCharFunction · 0.85
readFunction · 0.85
unicodeEscapeFunction · 0.85
invalidIdentifierFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…