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

Function componentOf

__tests__/sfc-component-owns-script.test.ts:20–20  ·  view source on GitHub ↗
(r: ExtractionResult)

Source from the content-addressed store, hash-verified

18});
19
20const componentOf = (r: ExtractionResult) => r.nodes.find((n) => n.kind === 'component')!;
21const from = (r: ExtractionResult, name: string) =>
22 r.unresolvedReferences.filter((ref) => ref.referenceName === name && ref.referenceKind === 'calls').map((ref) => ref.fromNodeId);
23const parents = (r: ExtractionResult) => {

Calls

no outgoing calls

Tested by

no test coverage detected