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

Function zero

lib/parse.js:424–445  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

422 },
423
424 zero () {
425 switch (c) {
426 case '.':
427 buffer += read()
428 lexState = 'decimalPoint'
429 return
430
431 case 'e':
432 case 'E':
433 buffer += read()
434 lexState = 'decimalExponent'
435 return
436
437 case 'x':
438 case 'X':
439 buffer += read()
440 lexState = 'hexadecimal'
441 return
442 }
443
444 return newToken('numeric', sign * 0)
445 },
446
447 decimalInteger () {
448 switch (c) {

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…