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

Method getFileLines

src/resolution/types.ts:148–148  ·  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

146 * callers fall back to splitting `readFile` themselves.
147 */
148 getFileLines?(filePath: string): string[] | null;
149 /**
150 * The method-definition nodes matching `typeName::methodName` in the language family —
151 * exactly `resolveMethodOnType`'s kind/language/qualifiedName-suffix filter,

Callers 15

typeQualifierFunction · 0.80
codeLinesFunction · 0.80
isModuleFunction · 0.80
namesWithoutRunningFunction · 0.80
headMemberOfFunction · 0.80
isJsSuperCallSiteFunction · 0.80
writesClassBeforeFunction · 0.80
gateSuperSelfCallMethod · 0.80
linesOfMethod · 0.80
linesOfFunction · 0.80
isRequestHelperFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected