(branchCallback = () => ({}))
| 22 | return this; |
| 23 | } |
| 24 | Else(branchCallback = () => ({})) { |
| 25 | this.branches.push({ |
| 26 | condition: null, |
| 27 | branchCallback, |
| 28 | blockType: BlockType.IF_BODY |
| 29 | }); |
| 30 | const phiNodes = buildConditional(this.ctx, this); |
| 31 | const assignments = {}; |
| 32 | for (const [varName, phiNode] of Object.entries(phiNodes)) { |
| 33 | assignments[varName] = createStrandsNode(phiNode.id, phiNode.dimension, this.ctx); |
| 34 | } |
| 35 | return assignments; |
| 36 | } |
| 37 | } |
| 38 | function buildConditional(strandsContext, conditional) { |
| 39 | const cfg = strandsContext.cfg; |
no test coverage detected