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

Function isIdentifierPart

test/fixtures/snapshot/typescript.js:10781–10787  ·  view source on GitHub ↗
(ch, languageVersion, identifierVariant)

Source from the content-addressed store, hash-verified

10779 }
10780 ts.isIdentifierStart = isIdentifierStart;
10781 function isIdentifierPart(ch, languageVersion, identifierVariant) {
10782 return ch >= 65 /* CharacterCodes.A */ && ch <= 90 /* CharacterCodes.Z */ || ch >= 97 /* CharacterCodes.a */ && ch <= 122 /* CharacterCodes.z */ ||
10783 ch >= 48 /* CharacterCodes._0 */ && ch <= 57 /* CharacterCodes._9 */ || ch === 36 /* CharacterCodes.$ */ || ch === 95 /* CharacterCodes._ */ ||
10784 // "-" and ":" are valid in JSX Identifiers
10785 (identifierVariant === 1 /* LanguageVariant.JSX */ ? (ch === 45 /* CharacterCodes.minus */ || ch === 58 /* CharacterCodes.colon */) : false) ||
10786 ch > 127 /* CharacterCodes.maxAsciiCharacter */ && isUnicodeIdentifierPart(ch, languageVersion);
10787 }
10788 ts.isIdentifierPart = isIdentifierPart;
10789 /* @internal */
10790 function isIdentifierText(name, languageVersion, identifierVariant) {

Callers 5

isIdentifierTextFunction · 0.85
scanIdentifierPartsFunction · 0.85
scanIdentifierFunction · 0.85
reScanSlashTokenFunction · 0.85
scanJsDocTokenFunction · 0.85

Calls 1

isUnicodeIdentifierPartFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…