MCPcopy Index your code
hub / github.com/dchester/jsonpath / lex

Function lex

jsonpath.js:1370–1385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1368 }
1369
1370 function lex() {
1371 var token;
1372
1373 token = lookahead;
1374 index = token.end;
1375 lineNumber = token.lineNumber;
1376 lineStart = token.lineStart;
1377
1378 lookahead = (typeof extra.tokens !== 'undefined') ? collectToken() : advance();
1379
1380 index = token.end;
1381 lineNumber = token.lineNumber;
1382 lineStart = token.lineStart;
1383
1384 return token;
1385 }
1386
1387 function peek() {
1388 var pos, line, start;

Callers 15

expectFunction · 0.70
expectKeywordFunction · 0.70
consumeSemicolonFunction · 0.70
parseArrayInitialiserFunction · 0.70
parseObjectPropertyKeyFunction · 0.70
parsePrimaryExpressionFunction · 0.70
parseNonComputedPropertyFunction · 0.70
parsePostfixExpressionFunction · 0.70
parseUnaryExpressionFunction · 0.70
parseBinaryExpressionFunction · 0.70

Calls 2

collectTokenFunction · 0.85
advanceFunction · 0.85

Tested by

no test coverage detected