MCPcopy Create free account
hub / github.com/dchester/jsonpath / peek

Function peek

jsonpath.js:1387–1397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1385 }
1386
1387 function peek() {
1388 var pos, line, start;
1389
1390 pos = index;
1391 line = lineNumber;
1392 start = lineStart;
1393 lookahead = (typeof extra.tokens !== 'undefined') ? collectToken() : advance();
1394 index = pos;
1395 lineNumber = line;
1396 lineStart = start;
1397 }
1398
1399 function Position(line, column) {
1400 this.line = line;

Callers 3

parsePrimaryExpressionFunction · 0.85
parseProgramFunction · 0.85
tokenizeFunction · 0.85

Calls 2

collectTokenFunction · 0.85
advanceFunction · 0.85

Tested by

no test coverage detected