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

Function isIdPart

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

Source from the content-addressed store, hash-verified

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;
65

Callers 2

isNamePartFunction · 0.85
codeMethod · 0.85

Calls 1

isIdStartFunction · 0.85

Tested by

no test coverage detected