(n, ctx)
| 142 | } |
| 143 | |
| 144 | static ConvertArrayExpression (n, ctx) { |
| 145 | const found = findOne(ctx.plan, x => fuzzyMatch(n, x[1]), 'Can\'t find the array expression') |
| 146 | const o = { |
| 147 | type: found[0].type, |
| 148 | extraState: { itemCount: n.elements.length }, |
| 149 | inputs: {}, |
| 150 | } |
| 151 | for (let i = 0; i < n.elements.length; ++i) { |
| 152 | o.inputs['ADD' + i] = { block: convert(n.elements[i], { ...ctx, context: 'value' }) } |
| 153 | } |
| 154 | return o |
| 155 | } |
| 156 | |
| 157 | static ConvertWhileStatement (n, ctx) { |
| 158 | const found = findOne(ctx.plan, x => fuzzyMatch(n, x[1]), 'Can\'t find the while statement') |
nothing calls this directly
no test coverage detected