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

Function resolveByNameAndKind

src/resolution/frameworks/java.ts:754–761  ·  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

752
753/** A framework name heuristic's pick (see name-heuristic.ts), preferring these folders. */
754function resolveByNameAndKind(
755 ref: UnresolvedRef,
756 kinds: Set<string>,
757 preferredDirPatterns: string[],
758 context: ResolutionContext,
759): string | null {
760 return pickByNameAndKind(ref, kinds, (f) => preferredDirPatterns.some((d) => f.includes(d)), context);
761}
762

Callers 1

resolveFunction · 0.70

Calls 1

pickByNameAndKindFunction · 0.90

Tested by

no test coverage detected