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

Function componentIn

src/resolution/frameworks/vue.ts:360–364  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

358 if (matches.length === 0) return null;
359
360 const componentIn = (file: string): string | null => {
361 const nodes = context.getNodesInFile(file);
362 const component = nodes.find((n) => n.kind === 'component' && n.name === name);
363 return component ? component.id : null;
364 };
365
366 // The referencing file's folder, or one below it, first for specificity
367 const sameDir = inReferencingFolder(fromFile, matches, (f) => f);

Callers 1

resolveComponentFunction · 0.70

Calls 1

getNodesInFileMethod · 0.65

Tested by

no test coverage detected