MCPcopy
hub / github.com/codesandbox/codesandbox-client / next

Function next

packages/app/static/js/babel.6.26.js:48276–48295  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

48274 throw error;
48275 },
48276 next = function next(c) {
48277
48278 // If a c parameter is provided, verify that it matches the current character.
48279
48280 if (c && c !== ch) {
48281 error("Expected " + renderChar(c) + " instead of " + renderChar(ch));
48282 }
48283
48284 // Get the next character. When there are no more characters,
48285 // return the empty string.
48286
48287 ch = text.charAt(at);
48288 at++;
48289 columnNumber++;
48290 if (ch === '\n' || ch === '\r' && peek() !== '\n') {
48291 lineNumber++;
48292 columnNumber = 0;
48293 }
48294 return ch;
48295 },
48296 peek = function peek() {
48297
48298 // Get the next character without consuming it or

Callers 13

identifierFunction · 0.70
numberFunction · 0.70
stringFunction · 0.70
inlineCommentFunction · 0.70
blockCommentFunction · 0.70
commentFunction · 0.70
whiteFunction · 0.70
wordFunction · 0.70
arrayFunction · 0.70
objectFunction · 0.70
parseHelperClassRangesFunction · 0.70

Calls 3

renderCharFunction · 0.85
errorFunction · 0.70
peekFunction · 0.70

Tested by

no test coverage detected