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

Method readFile

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

Read file content

(filePath: string)

Source from the content-addressed store, hash-verified

129 fileExists(filePath: string): boolean;
130 /** Read file content */
131 readFile(filePath: string): string | null;
132 /** Record a project-relative file resolution read its answer from, for sync to watch (see `getModuleConfigSnapshot`). */
133 noteModuleConfigFile?(filePath: string): void;
134 /** `readFile(filePath)?.includes(needle) ?? false` for an ASCII `needle`, without decoding a file that lacks it. */

Callers 15

readGrammarWasmBytesFunction · 0.65
cppNonCodeLinesFunction · 0.65
statedDefaultExportFunction · 0.65
commonJsDefaultExportFunction · 0.65
hasEsmDefaultExportFunction · 0.65
exportedByNameFunction · 0.65
declaredPythonRootsFunction · 0.65
pythonStarExportsFunction · 0.65
relativeDirectoryMainFunction · 0.65
isBrowserCodeFunction · 0.65
typeQualifierFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected