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

Method ambientDeclarationPredicateFor

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

4330 * O(1) per comparison.
4331 */
4332 ambientDeclarationPredicateFor(filePaths: Iterable<string>): (filePath: string) => boolean {
4333 const flagged = this.getAmbientDeclarationPathsAmong(filePaths);
4334 return (filePath: string) => flagged.has(filePath);
4335 }
4336
4337 /** How many indexed files carry the generated flag. Surfaced by `status`. */
4338 countGeneratedFiles(): number {

Callers 1

Calls 2

hasMethod · 0.80

Tested by

no test coverage detected