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

Function newToken

lib/parse.js:708–715  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

706}
707
708function newToken (type, value) {
709 return {
710 type,
711 value,
712 line,
713 column,
714 }
715}
716
717function literal (s) {
718 for (const c of s) {

Callers 15

defaultFunction · 0.85
singleLineCommentFunction · 0.85
valueFunction · 0.85
identifierNameFunction · 0.85
signFunction · 0.85
zeroFunction · 0.85
decimalIntegerFunction · 0.85
decimalPointFunction · 0.85
decimalFractionFunction · 0.85
decimalExponentIntegerFunction · 0.85
hexadecimalIntegerFunction · 0.85
stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…