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

Function resolve

src/resolution/callback-synthesizer.ts:1342–1345  ·  view source on GitHub ↗
(name: string, kinds: Set<string>)

Source from the content-addressed store, hash-verified

1340 // Prefer a target in THIS SFC (handlers live in the same file's script) —
1341 // avoids cross-file mis-match when a name repeats across a monorepo.
1342 const resolve = (name: string, kinds: Set<string>): Node | undefined => {
1343 const matches = ctx.getNodesByName(name).filter((n) => kinds.has(n.kind));
1344 return matches.find((n) => n.filePath === file) ?? matches[0];
1345 };
1346
1347 let m: RegExpExecArray | null;
1348 VUE_KEBAB_RE.lastIndex = 0;

Callers 4

vueTemplateEdgesFunction · 0.70
vuexDispatchEdgesFunction · 0.70
celeryDispatchEdgesFunction · 0.70
sidekiqDispatchEdgesFunction · 0.70

Calls 7

isStoreFileFunction · 0.85
pathHasSegmentFunction · 0.85
isCeleryTaskFunction · 0.85
performOfFunction · 0.85
hasMethod · 0.80
getNodesByNameMethod · 0.65

Tested by

no test coverage detected