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

Function readIdentifier

src/resolution/frameworks/java.ts:583–586  ·  view source on GitHub ↗
(s: string, i: number)

Source from the content-addressed store, hash-verified

581const IDENTIFIER = /[A-Za-z_$][\w$]*/y;
582
583function readIdentifier(s: string, i: number): string | null {
584 IDENTIFIER.lastIndex = i;
585 return IDENTIFIER.exec(s)?.[0] ?? null;
586}
587
588function skipSpace(s: string, i: number): number {
589 while (i < s.length && /\s/.test(s[i]!)) i++;

Callers 3

readNameFunction · 0.85
annotatedMethodNameFunction · 0.85

Calls 1

execMethod · 0.65

Tested by

no test coverage detected