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

Function resolveByNameAndKind

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

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

Callers 1

resolveFunction · 0.70

Calls 1

pickByNameAndKindFunction · 0.90

Tested by

no test coverage detected