MCPcopy Index your code
hub / github.com/nodejs/node / nextToken

Function nextToken

test/fixtures/snapshot/typescript.js:32002–32009  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32000 return func();
32001 }
32002 function nextToken() {
32003 // if the keyword had an escape
32004 if (ts.isKeyword(currentToken) && (scanner.hasUnicodeEscape() || scanner.hasExtendedUnicodeEscape())) {
32005 // issue a parse error for the escape
32006 parseErrorAt(scanner.getTokenPos(), scanner.getTextPos(), ts.Diagnostics.Keywords_cannot_contain_escape_characters);
32007 }
32008 return nextTokenWithoutCheck();
32009 }
32010 function nextTokenJSDoc() {
32011 return currentToken = scanner.scanJsDocToken();
32012 }

Callers 15

parseIsolatedEntityNameFunction · 0.85
parseJsonTextFunction · 0.85
parseSourceFileWorkerFunction · 0.85
_loop_3Function · 0.85
nextTokenAndFunction · 0.85
parseExpectedFunction · 0.85
parseOptionalFunction · 0.85
parseTokenNodeFunction · 0.85
tryParseSemicolonFunction · 0.85
parsePrivateIdentifierFunction · 0.85

Calls 2

parseErrorAtFunction · 0.85
nextTokenWithoutCheckFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…