MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isIdentifier

Method isIdentifier

compiler/companion/src/utils/TextParser.ts:88–97  ·  view source on GitHub ↗
(position: number)

Source from the content-addressed store, hash-verified

86 }
87
88 private isIdentifier(position: number): boolean {
89 const code = this.text.charCodeAt(position);
90 return (
91 (code > 47 && code < 58) ||
92 (code > 64 && code < 91) ||
93 (code > 96 && code < 123) ||
94 code === CharCode.underscore ||
95 code === CharCode.dollar
96 );
97 }
98
99 isAtIdentifier(): boolean {
100 this.consumeWhitespaces();

Callers 15

isAtIdentifierMethod · 0.95
parseIdentifierMethod · 0.95
traverseMethod · 0.80
identifierCompleterMethod · 0.80
replaceMethod · 0.80
templateFunctionStrFunction · 0.80
isConsoleCallFunction · 0.80
toStringLiteralMethod · 0.80
getJsxNodeKindMethod · 0.80
outputJSXComponentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected