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

Function read

lib/parse.js:113–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111}
112
113function read () {
114 const c = peek()
115
116 if (c === '\n') {
117 line++
118 column = 0
119 } else if (c) {
120 column += c.length
121 } else {
122 column++
123 }
124
125 if (c) {
126 pos += c.length
127 }
128
129 return c
130}
131
132const lexStates = {
133 default () {

Callers 15

defaultFunction · 0.85
commentFunction · 0.85
multiLineCommentFunction · 0.85
multiLineCommentAsteriskFunction · 0.85
singleLineCommentFunction · 0.85
valueFunction · 0.85
identifierNameFunction · 0.85
identifierNameEscapeFunction · 0.85
signFunction · 0.85
zeroFunction · 0.85
decimalIntegerFunction · 0.85

Calls 1

peekFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…