* Finds the internal link connected to the given output slot inside the subgraph, and resolves the nodes / slots. * @param slot The slot index * @returns The output node if found, otherwise undefined.
(slot: number)
| 304 | * @returns The output node if found, otherwise undefined. |
| 305 | */ |
| 306 | resolveSubgraphOutputLink(slot: number): ResolvedConnection | undefined { |
| 307 | const outputSlot = this.subgraph.outputNode.slots[slot] |
| 308 | const innerLink = outputSlot.getLinks().at(0) |
| 309 | if (innerLink) return innerLink.resolve(this.subgraph) |
| 310 | |
| 311 | console.debug(`[SubgraphNode.resolveSubgraphOutputLink] No inner link found for output slot [${slot}] ${outputSlot.name}`, this) |
| 312 | } |
| 313 | |
| 314 | /** @internal Used to flatten the subgraph before execution. */ |
| 315 | getInnerNodes( |
no test coverage detected