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

Function assignAt

src/resolution/name-matcher.ts:1568–1572  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

1566): string | null {
1567 const assignRe = new RegExp(`\\$this->${escapedProp}\\b\\s*=\\s*\\$(\\w+)\\b`);
1568 const assignAt = (i: number): RegExpMatchArray | null => {
1569 const line = lines[i];
1570 if (!line || line.length > 10_000) return null;
1571 return line.match(assignRe);
1572 };
1573 // The assignment is position-independent relative to the call — nearest-
1574 // backward first, then sweep forward, same order as the componentScoped scan.
1575 let assignIdx = -1;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected