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

Method getFileLines

src/resolution/types.ts:98–98  ·  view source on GitHub ↗

* `readFile(filePath)` split into lines, LRU-cached per file. Receiver-type * inference scans source lines for EVERY `receiver.method()` ref; splitting * the whole file per ref made that O(refs-in-file × file-size) — ~20% of * total index CPU on a Java-heavy repo and a driver of the #1122 w

(filePath: string)

Source from the content-addressed store, hash-verified

96 * callers fall back to splitting `readFile` themselves.
97 */
98 getFileLines?(filePath: string): string[] | null;
99 /**
100 * The method-definition nodes matching `typeName::methodName` in `language` —
101 * exactly `resolveMethodOnType`'s kind/language/qualifiedName-suffix filter,

Callers 3

inferCppReceiverTypeFunction · 0.80
inferLocalReceiverTypeFunction · 0.80
readNodeSpanMatchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected