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

Function lex

lib/parse.js:86–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84let c
85
86function lex () {
87 lexState = 'default'
88 buffer = ''
89 doubleQuote = false
90 sign = 1
91
92 for (;;) {
93 c = peek()
94
95 // This code is unreachable.
96 // if (!lexStates[lexState]) {
97 // throw invalidLexState(lexState)
98 // }
99
100 const token = lexStates[lexState]()
101 if (token) {
102 return token
103 }
104 }
105}
106
107function peek () {
108 if (source[pos]) {

Callers 1

parse.jsFile · 0.85

Calls 1

peekFunction · 0.85

Tested by

no test coverage detected