| 204 | return result; |
| 205 | } |
| 206 | |
| 207 | /** |
| 208 | * Compute the effective outputs the node emits to variable scope: available outputs |
| 209 | * filtered to active emit bindings only (inactive bindings and active assign bindings |
| 210 | * contribute nothing — assign routes to an existing variable, inactive is discarded). |
| 211 | * Emit bindings carry a user-chosen name that overrides the output's default name (the id). |
| 212 | * |
| 213 | * Binding lookup: |
| 214 | * - Static outputs (incl. FunctionCall returns): `node.arguments[out.id]` |
| 215 | * - List outputs: each entry is already a declaration; emit entries contribute |
| 216 | * directly (no separate binding), assign entries contribute nothing |
| 217 | */ |
| 218 | export function getNodeOutput(node: NodeData): Record<string, NodeOutput> { |