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

Function skipSpace

src/resolution/jsx-code.ts:66–69  ·  view source on GitHub ↗
(src: string, k: number)

Source from the content-addressed store, hash-verified

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++;
68 return k;
69}
70
71function nameEnd(src: string, k: number): number {
72 while (k < src.length && isNamePart(src.charCodeAt(k))) k++;

Callers 3

openElementMethod · 0.70
tagMethod · 0.70
childrenMethod · 0.70

Calls 1

isSpaceFunction · 0.70

Tested by

no test coverage detected