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

Method generatedPredicateFor

src/db/queries.ts:4097–4100  ·  view source on GitHub ↗

* A reusable `(path) => boolean` over a bounded candidate list, unioning the * indexed flag with the path convention. This is the shape every ranking * comparator wants: one query up front, then O(1) per comparison.

(filePaths: Iterable<string>)

Source from the content-addressed store, hash-verified

4095 * comparator wants: one query up front, then O(1) per comparison.
4096 */
4097 generatedPredicateFor(filePaths: Iterable<string>): (filePath: string) => boolean {
4098 const flagged = this.getGeneratedPathsAmong(filePaths);
4099 return (filePath: string) => flagged.has(filePath) || isGeneratedFile(filePath);
4100 }
4101
4102 /**
4103 * Which of `filePaths` are AMBIENT DECLARATION files — they declare nothing

Callers 4

goFuncFieldEdgesFunction · 0.80
buildContextMethod · 0.80

Calls 3

isGeneratedFileFunction · 0.90
hasMethod · 0.80

Tested by

no test coverage detected