MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / isIdentifierPart

Function isIdentifierPart

Extension/src/Utility/Text/characterCodes.ts:192–198  ·  view source on GitHub ↗
(ch: number)

Source from the content-addressed store, hash-verified

190}
191
192export function isIdentifierPart(ch: number): boolean {
193 return ch >= CharacterCodes.A && ch <= CharacterCodes.Z ||
194 ch >= CharacterCodes.a && ch <= CharacterCodes.z ||
195 ch >= CharacterCodes._0 && ch <= CharacterCodes._9 ||
196 ch === CharacterCodes._ || ch === CharacterCodes.minus ||
197 ch > CharacterCodes.maxAsciiCharacter && isUnicodeIdentifierPart(ch);
198}
199
200/** Characters that are in this range are actually code points that take two characters in UTF-16 */
201export function sizeOf(ch: number): number {

Callers 4

scanMethod · 0.90
scanIdentifierMethod · 0.90
scanVariableMethod · 0.90
parseTaggedLiteralFunction · 0.90

Calls 1

isUnicodeIdentifierPartFunction · 0.85

Tested by

no test coverage detected