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

Method isFileLevel

src/extraction/vue-extractor.ts:180–180  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

178 const fileNode = result.nodes.find((n) => n.kind === 'file');
179 const narrower = new Set(result.nodes.filter((n) => n.kind !== 'file').map((n) => n.id));
180 const isFileLevel = (id: string) => (fileNode ? id === fileNode.id : !narrower.has(id));
181 for (const ref of result.unresolvedReferences) {
182 if (!isFileLevel(ref.fromNodeId)) continue;
183 const member = memberAt(ref.line);

Callers

nothing calls this directly

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected