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

Method ambientDeclarationPredicateFor

src/db/queries.ts:2132–2135  ·  view source on GitHub ↗

* A reusable `(path) => boolean` ambient-declaration test over a bounded * candidate list — the shape a ranking comparator wants: one query up front, * O(1) per comparison.

(filePaths: Iterable<string>)

Source from the content-addressed store, hash-verified

2130 * O(1) per comparison.
2131 */
2132 ambientDeclarationPredicateFor(filePaths: Iterable<string>): (filePath: string) => boolean {
2133 const flagged = this.getAmbientDeclarationPathsAmong(filePaths);
2134 return (filePath: string) => flagged.has(filePath);
2135 }
2136
2137 /** How many indexed files carry the generated flag. Surfaced by `status`. */
2138 countGeneratedFiles(): number {

Callers 1

Calls 2

hasMethod · 0.80

Tested by

no test coverage detected