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

Function readIdentifier

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

Source from the content-addressed store, hash-verified

579const IDENTIFIER = /[A-Za-z_$][\w$]*/y;
580
581function readIdentifier(s: string, i: number): string | null {
582 IDENTIFIER.lastIndex = i;
583 return IDENTIFIER.exec(s)?.[0] ?? null;
584}
585
586function skipSpace(s: string, i: number): number {
587 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