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

Function decimalInteger

lib/parse.js:447–467  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

445 },
446
447 decimalInteger () {
448 switch (c) {
449 case '.':
450 buffer += read()
451 lexState = 'decimalPoint'
452 return
453
454 case 'e':
455 case 'E':
456 buffer += read()
457 lexState = 'decimalExponent'
458 return
459 }
460
461 if (util.isDigit(c)) {
462 buffer += read()
463 return
464 }
465
466 return newToken('numeric', sign * Number(buffer))
467 },
468
469 decimalPointLeading () {
470 if (util.isDigit(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…