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

Function synthEdgesTo

__tests__/arkts-resolution.test.ts:222–229  ·  view source on GitHub ↗
(from: string)

Source from the content-addressed store, hash-verified

220 const describeCount = methods.find((n) => n.qualifiedName === 'Page::describeCount')!;
221
222 const synthEdgesTo = (from: string) =>
223 cg
224 .getOutgoingEdges(from)
225 .filter(
226 (e) =>
227 e.target === build.id &&
228 (e.metadata as Record<string, unknown> | undefined)?.synthesizedBy === 'arkui-state'
229 );
230
231 // Array mutator and plain assignment both count as state writes.
232 expect(synthEdgesTo(addTodo.id)).toHaveLength(1);

Callers 1

Calls 1

getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected