MCPcopy
hub / github.com/inlife/nexrender / lex

Function lex

packages/nexrender-action-lottie/lib/jsx/esprima.jsx:1538–1557  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1536 }
1537
1538 function lex() {
1539 var token;
1540 scanning = true;
1541
1542 lastIndex = index;
1543 lastLineNumber = lineNumber;
1544 lastLineStart = lineStart;
1545
1546 skipComment();
1547
1548 token = lookahead;
1549
1550 startIndex = index;
1551 startLineNumber = lineNumber;
1552 startLineStart = lineStart;
1553
1554 lookahead = (typeof extra.tokens !== 'undefined') ? collectToken() : advance();
1555 scanning = false;
1556 return token;
1557 }
1558
1559 function peek() {
1560 scanning = true;

Callers 15

expectFunction · 0.85
expectCommaSeparatorFunction · 0.85
expectKeywordFunction · 0.85
consumeSemicolonFunction · 0.85
parseArrayPatternFunction · 0.85
parsePropertyPatternFunction · 0.85
parseObjectPatternFunction · 0.85
parsePatternWithDefaultFunction · 0.85
parseArrayInitializerFunction · 0.85
parseObjectPropertyKeyFunction · 0.85
parseObjectPropertyFunction · 0.85
parseTemplateElementFunction · 0.85

Calls 3

skipCommentFunction · 0.85
collectTokenFunction · 0.85
advanceFunction · 0.85

Tested by

no test coverage detected