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

Method isFileLevel

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

Source from the content-addressed store, hash-verified

172 const fileNode = result.nodes.find((n) => n.kind === 'file');
173 const narrower = new Set(result.nodes.filter((n) => n.kind !== 'file').map((n) => n.id));
174 const isFileLevel = (id: string) => (fileNode ? id === fileNode.id : !narrower.has(id));
175 for (const ref of result.unresolvedReferences) {
176 if (!isFileLevel(ref.fromNodeId)) continue;
177 const member = memberAt(ref.line);

Callers

nothing calls this directly

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected