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

Function resolveByNameAndKind

src/resolution/frameworks/python.ts:645–652  ·  view source on GitHub ↗

A framework name heuristic's pick (see name-heuristic.ts), preferring these folders.

(
  ref: UnresolvedRef,
  kinds: Set<string>,
  preferredDirPatterns: string[],
  context: ResolutionContext,
)

Source from the content-addressed store, hash-verified

643
644/** A framework name heuristic's pick (see name-heuristic.ts), preferring these folders. */
645function resolveByNameAndKind(
646 ref: UnresolvedRef,
647 kinds: Set<string>,
648 preferredDirPatterns: string[],
649 context: ResolutionContext,
650): string | null {
651 return pickByNameAndKind(ref, kinds, (f) => preferredDirPatterns.some((d) => f.includes(d)), context);
652}

Callers 1

resolveFunction · 0.70

Calls 1

pickByNameAndKindFunction · 0.90

Tested by

no test coverage detected