Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public WhileStmt(ParserRuleContext sourceLocation, IPExpr condition, IPStmt body)
 {
     SourceLocation = sourceLocation;
     Condition      = condition;
     Body           = CompoundStmt.FromStatement(body);
 }