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

Method isIndexedFile

src/resolution/index.ts:4694–4697  ·  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

4692
4693 /** Is `filePath` (project-relative) one of the files the index holds? */
4694 private isIndexedFile(filePath: string): boolean {
4695 const normalized = filePath.replace(/\\/g, '/');
4696 return this.knownFiles ? this.knownFiles.has(normalized) : this.queries.getFileByPath(normalized) !== null;
4697 }
4698
4699 /** The repository's own package name, from its root package.json; null without one. */
4700 /** 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