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

Function identifierName

lib/parse.js:336–357  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

334 },
335
336 identifierName () {
337 switch (c) {
338 case '$':
339 case '_':
340 case '\u200C':
341 case '\u200D':
342 buffer += read()
343 return
344
345 case '\\':
346 read()
347 lexState = 'identifierNameEscape'
348 return
349 }
350
351 if (util.isIdContinueChar(c)) {
352 buffer += read()
353 return
354 }
355
356 return newToken('identifier', buffer)
357 },
358
359 identifierNameEscape () {
360 if (c !== 'u') {

Callers

nothing calls this directly

Calls 2

readFunction · 0.85
newTokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…