(c: IConstruct)
| 200 | return ret; |
| 201 | |
| 202 | function visit(c: IConstruct) { |
| 203 | if (order === ConstructOrder.PREORDER) { |
| 204 | ret.push(c); |
| 205 | } |
| 206 | |
| 207 | for (const child of c.node.children) { |
| 208 | visit(child); |
| 209 | } |
| 210 | |
| 211 | if (order === ConstructOrder.POSTORDER) { |
| 212 | ret.push(c); |
| 213 | } |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected