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

Function resolveRustPathReference

src/resolution/import-resolver.ts:4201–4207  ·  view source on GitHub ↗

* Resolve a Rust qualified reference `A::B::C` to the item module `A::B` * holds by the name `C` (rustPathTarget walks the modules as Rust does). This * is the Rust analog of resolvePythonModuleMember / * resolveGoCrossPackageReference and the precise answer to common-name * re-e

(
  ref: UnresolvedRef,
  context: ResolutionContext
)

Source from the content-addressed store, hash-verified

4199 * associated-function calls and enum-variant paths fall through untouched.
4200 */
4201function resolveRustPathReference(
4202 ref: UnresolvedRef,
4203 context: ResolutionContext
4204): ResolvedRef | null {
4205 const target = rustPathTarget(ref, context);
4206 return target ? { original: ref, targetNodeId: target.id, confidence: 0.9, resolvedBy: 'import' } : null;
4207}
4208
4209/** The languages a Java or Kotlin import can name a declaration in: either of them. */
4210const JVM_IMPORT_LANGUAGES: ReadonlySet<string> = new Set(['java', 'kotlin']);

Callers 1

resolveViaImportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected