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

Function getIdentifierToken

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

Source from the content-addressed store, hash-verified

11345 return result;
11346 }
11347 function getIdentifierToken() {
11348 // Reserved words are between 2 and 12 characters long and start with a lowercase letter
11349 var len = tokenValue.length;
11350 if (len >= 2 && len <= 12) {
11351 var ch = tokenValue.charCodeAt(0);
11352 if (ch >= 97 /* CharacterCodes.a */ && ch <= 122 /* CharacterCodes.z */) {
11353 var keyword = textToKeyword.get(tokenValue);
11354 if (keyword !== undefined) {
11355 return token = keyword;
11356 }
11357 }
11358 }
11359 return token = 79 /* SyntaxKind.Identifier */;
11360 }
11361 function scanBinaryOrOctalDigits(base) {
11362 var value = "";
11363 // For counting number of digits; Valid binaryIntegerLiteral must have at least one binary digit following B or b.

Callers 4

scanFunction · 0.85
scanIdentifierFunction · 0.85
scanJsxIdentifierFunction · 0.85
scanJsDocTokenFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…