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

Function reScanInvalidIdentifier

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

Source from the content-addressed store, hash-verified

11865 }
11866 }
11867 function reScanInvalidIdentifier() {
11868 ts.Debug.assert(token === 0 /* SyntaxKind.Unknown */, "'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'.");
11869 pos = tokenPos = startPos;
11870 tokenFlags = 0;
11871 var ch = codePointAt(text, pos);
11872 var identifierKind = scanIdentifier(ch, 99 /* ScriptTarget.ESNext */);
11873 if (identifierKind) {
11874 return token = identifierKind;
11875 }
11876 pos += charSize(ch);
11877 return token; // Still `SyntaKind.Unknown`
11878 }
11879 function scanIdentifier(startCharacter, languageVersion) {
11880 var ch = startCharacter;
11881 if (isIdentifierStart(ch, languageVersion)) {

Callers

nothing calls this directly

Calls 3

scanIdentifierFunction · 0.85
charSizeFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…