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

Method ambientDeclarationPredicateFor

src/db/queries.ts:4221–4224  ·  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

4219 * O(1) per comparison.
4220 */
4221 ambientDeclarationPredicateFor(filePaths: Iterable<string>): (filePath: string) => boolean {
4222 const flagged = this.getAmbientDeclarationPathsAmong(filePaths);
4223 return (filePath: string) => flagged.has(filePath);
4224 }
4225
4226 /** How many indexed files carry the generated flag. Surfaced by `status`. */
4227 countGeneratedFiles(): number {

Callers 1

Calls 2

hasMethod · 0.80

Tested by

no test coverage detected