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

Function scanIdentifier

test/fixtures/snapshot/typescript.js:11879–11891  ·  view source on GitHub ↗
(startCharacter, languageVersion)

Source from the content-addressed store, hash-verified

11877 return token; // Still `SyntaKind.Unknown`
11878 }
11879 function scanIdentifier(startCharacter, languageVersion) {
11880 var ch = startCharacter;
11881 if (isIdentifierStart(ch, languageVersion)) {
11882 pos += charSize(ch);
11883 while (pos < end && isIdentifierPart(ch = codePointAt(text, pos), languageVersion))
11884 pos += charSize(ch);
11885 tokenValue = text.substring(tokenPos, pos);
11886 if (ch === 92 /* CharacterCodes.backslash */) {
11887 tokenValue += scanIdentifierParts();
11888 }
11889 return getIdentifierToken();
11890 }
11891 }
11892 function reScanGreaterToken() {
11893 if (token === 31 /* SyntaxKind.GreaterThanToken */) {
11894 if (text.charCodeAt(pos) === 62 /* CharacterCodes.greaterThan */) {

Callers 2

scanFunction · 0.85
reScanInvalidIdentifierFunction · 0.85

Calls 5

isIdentifierStartFunction · 0.85
charSizeFunction · 0.85
isIdentifierPartFunction · 0.85
scanIdentifierPartsFunction · 0.85
getIdentifierTokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…