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

Function singleLineComment

lib/parse.js:220–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218 },
219
220 singleLineComment () {
221 switch (c) {
222 case '\n':
223 case '\r':
224 case '\u2028':
225 case '\u2029':
226 read()
227 lexState = 'default'
228 return
229
230 case undefined:
231 read()
232 return newToken('eof')
233 }
234
235 read()
236 },
237
238 value () {
239 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…