(node: NodeData)
| 244 | if (out.type === "static") { |
| 245 | applyStaticBinding(out.id, out.id, resolveStaticOutputDataType(out, node.arguments), getStaticBinding(args, out.id)); |
| 246 | } else { |
| 247 | const entries = (args[out.id] as OutputDeclaration[] | undefined) ?? []; |
| 248 | for (const entry of entries) { |
| 249 | if (entry.mode === "emit") { |
| 250 | result[entry.uid] = { name: entry.name, dataType: entry.dataType }; |
| 251 | } |
| 252 | } |
| 253 | } |
| 254 | } |
| 255 | return result; |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * Compute external input requirements for a node instance (debug mode). |
| 260 | * Returns the hardware I/O values the node will read during execution. |
| 261 | */ |
| 262 | export function getInput(node: NodeData): ExternalInput[] { |
| 263 | switch (node.type) { |
| 264 | case "ReadPin": |
no outgoing calls
no test coverage detected