MCPcopy Index your code
hub / github.com/callstack/agent-device / attachRefs

Function attachRefs

src/kernel/snapshot.ts:133–135  ·  view source on GitHub ↗
(nodes: RawSnapshotNode[])

Source from the content-addressed store, hash-verified

131};
132
133export function attachRefs(nodes: RawSnapshotNode[]): SnapshotNode[] {
134 return nodes.map((node, idx) => ({ ...node, ref: `e${idx + 1}` }));
135}
136
137export function normalizeRef(input: string): string | null {
138 const trimmed = input.trim();

Callers 11

readAndroidSnapshotNodesFunction · 0.90
buildSnapshotStateFunction · 0.90
scopeSnapshotNodesFunction · 0.90
buildSnapshotStateFunction · 0.90
buildNodesFunction · 0.90
makeSnapshotStateFunction · 0.90

Calls

no outgoing calls

Tested by 4

buildSnapshotStateFunction · 0.72
buildNodesFunction · 0.72
makeSnapshotStateFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…