MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / peek

Function peek

scripts/libs/esprima.js:1484–1499  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1482 }
1483
1484 function peek() {
1485 scanning = true;
1486
1487 skipComment();
1488
1489 lastIndex = index;
1490 lastLineNumber = lineNumber;
1491 lastLineStart = lineStart;
1492
1493 startIndex = index;
1494 startLineNumber = lineNumber;
1495 startLineStart = lineStart;
1496
1497 lookahead = (typeof extra.tokens !== 'undefined') ? collectToken() : advance();
1498 scanning = false;
1499 }
1500
1501 function Position() {
1502 this.line = startLineNumber;

Callers 2

parseProgramFunction · 0.85
tokenizeFunction · 0.85

Calls 3

skipCommentFunction · 0.85
collectTokenFunction · 0.85
advanceFunction · 0.85

Tested by

no test coverage detected