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

Function isNamePart

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

Source from the content-addressed store, hash-verified

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
66function skipSpace(src: string, k: number): number {
67 while (k < src.length && isSpace(src.charCodeAt(k))) k++;

Callers 1

nameEndFunction · 0.85

Calls 1

isIdPartFunction · 0.85

Tested by

no test coverage detected