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

Function resolved

src/resolution/frameworks/drupal.ts:758–759  ·  view source on GitHub ↗
(target: Node | undefined, confidence: number)

Source from the content-addressed store, hash-verified

756 resolve(ref: UnresolvedRef, context: ResolutionContext): ResolvedRef | null {
757 const name = ref.referenceName;
758 const resolved = (target: Node | undefined, confidence: number): ResolvedRef | null =>
759 target ? { original: ref, targetNodeId: target.id, confidence, resolvedBy: 'framework' } : null;
760
761 if (name.startsWith(SERVICE_REF)) return resolved(serviceNode(name.slice(SERVICE_REF.length), context), 0.9);
762 if (name.startsWith(FQCN_REF)) return resolved(classByFqcn(name.slice(FQCN_REF.length).replace(':', ''), context), 0.9);

Callers 1

resolveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected