MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / isIdStart

Function isIdStart

src/resolution/jsx-code.ts:60–61  ·  view source on GitHub ↗
(c: number)

Source from the content-addressed store, hash-verified

58const isSpace = (c: number): boolean =>
59 c === 32 || c === 10 || c === 13 || c === 9 || c === 11 || c === 12 || c === 0xa0 || c === 0xfeff;
60const isIdStart = (c: number): boolean =>
61 (c >= 97 && c <= 122) || (c >= 65 && c <= 90) || c === 36 || c === 95 || (c > 127 && !isSpace(c));
62const isIdPart = (c: number): boolean => isIdStart(c) || (c >= 48 && c <= 57);
63/** A JSX name's characters: an identifier's, and the `-`, `.` and `:` between its parts. */
64const isNamePart = (c: number): boolean => isIdPart(c) || c === 45 || c === 46 || c === 58;

Callers 4

isIdPartFunction · 0.85
codeMethod · 0.85
tagMethod · 0.85
childrenMethod · 0.85

Calls 1

isSpaceFunction · 0.70

Tested by

no test coverage detected