public IfStmt(ParserRuleContext sourceLocation, IPExpr condition, IPStmt thenBranch, IPStmt elseBranch) { SourceLocation = sourceLocation; Condition = condition; ThenBranch = CompoundStmt.FromStatement(thenBranch); ElseBranch = elseBranch == null ? null : CompoundStmt.FromStatement(elseBranch); }
public WhileStmt(ParserRuleContext sourceLocation, IPExpr condition, IPStmt body) { SourceLocation = sourceLocation; Condition = condition; Body = CompoundStmt.FromStatement(body); }