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

Function resolveByNameAndKind

src/resolution/frameworks/python.ts:646–653  ·  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

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

Callers 1

resolveFunction · 0.70

Calls 1

pickByNameAndKindFunction · 0.90

Tested by

no test coverage detected