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

Method fileContains

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

`readFile(filePath)?.includes(needle) ?? false` for an ASCII `needle`, without decoding a file that lacks it.

(filePath: string, needle: string)

Source from the content-addressed store, hash-verified

131 readFile(filePath: string): string | null;
132 /** `readFile(filePath)?.includes(needle) ?? false` for an ASCII `needle`, without decoding a file that lacks it. */
133 fileContains?(filePath: string, needle: string): boolean;
134 /**
135 * An indexed file's text for a walk over all of them, which keeps none: it
136 * stays out of the content cache, and each byte is a character, so anything

Callers 9

commonJsDefaultExportFunction · 0.65
angularComponentsFunction · 0.65
isDefinedInFunction · 0.65
linkWrappersFunction · 0.65
scannedFunction · 0.65
libraryFilesNamedFunction · 0.65
angularMountsFunction · 0.65
postExtractFunction · 0.65
postExtractFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected