(parentReference: ParentReference)
| 39 | |
| 40 | export class IfStatement extends SplootNode { |
| 41 | constructor(parentReference: ParentReference) { |
| 42 | super(parentReference, IF_STATEMENT) |
| 43 | this.addChildSet('condition', ChildSetType.Single, NodeCategory.Expression) |
| 44 | this.getChildSet('condition').addChild(new SplootExpression(null)) |
| 45 | this.addChildSet('trueblock', ChildSetType.Many, NodeCategory.Statement) |
| 46 | // this.addChildSet('elseblock', ChildSetType.Many, NodeCategory.Statement); |
| 47 | } |
| 48 | |
| 49 | getCondition() { |
| 50 | return this.getChildSet('condition') |
nothing calls this directly
no test coverage detected