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

Method isIndexedFile

src/resolution/index.ts:4923–4926  ·  view source on GitHub ↗

Is `filePath` (project-relative) one of the files the index holds?

(filePath: string)

Source from the content-addressed store, hash-verified

4921
4922 /** Is `filePath` (project-relative) one of the files the index holds? */
4923 private isIndexedFile(filePath: string): boolean {
4924 const normalized = filePath.replace(/\\/g, '/');
4925 return this.knownFiles ? this.knownFiles.has(normalized) : this.queries.getFileByPath(normalized) !== null;
4926 }
4927
4928 /** The repository's own package name, from its root package.json; null without one. */
4929 /** Per directory: the package names its package.json and every enclosing one own and depend on. */

Callers 1

createContextMethod · 0.95

Calls 2

hasMethod · 0.80
getFileByPathMethod · 0.80

Tested by

no test coverage detected