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

Function isIdentifierText

test/fixtures/snapshot/typescript.js:10790–10801  ·  view source on GitHub ↗
(name, languageVersion, identifierVariant)

Source from the content-addressed store, hash-verified

10788 ts.isIdentifierPart = isIdentifierPart;
10789 /* @internal */
10790 function isIdentifierText(name, languageVersion, identifierVariant) {
10791 var ch = codePointAt(name, 0);
10792 if (!isIdentifierStart(ch, languageVersion)) {
10793 return false;
10794 }
10795 for (var i = charSize(ch); i < name.length; i += charSize(ch)) {
10796 if (!isIdentifierPart(ch = codePointAt(name, i), languageVersion, identifierVariant)) {
10797 return false;
10798 }
10799 }
10800 return true;
10801 }
10802 ts.isIdentifierText = isIdentifierText;
10803 // Creates a scanner over a (possibly unspecified) range of a piece of text.
10804 function createScanner(languageVersion, skipTrivia, languageVariant, textInitial, onError, start, length) {

Callers

nothing calls this directly

Calls 3

isIdentifierStartFunction · 0.85
charSizeFunction · 0.85
isIdentifierPartFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…