Esempio n. 1
0
 public CondThenPair(Element cond, NormalStatement stmt)
 {
     Contract.Requires <ArgumentNullException>(cond != null);
     Contract.Requires <ArgumentNullException>(stmt != null);
     this.Condition = cond;
     this.Statement = stmt;
 }
Esempio n. 2
0
 private ExprParamPair GenNormalStmt(NormalStatement stmt, ParamList overlapCandidate)
 {
     Contract.Requires <ArgumentNullException>(stmt != null);
     Contract.Ensures(Contract.Result <ExprParamPair>() != null);
     if (stmt is Return)
     {
         return(GenReturn((Return)stmt, overlapCandidate));
     }
     if (stmt is PhraseChain)
     {
         return(GenChain((PhraseChain)stmt, overlapCandidate));
     }
     if (stmt is BlockExecute)
     {
         return(GenBlockExec((BlockExecute)stmt, overlapCandidate));
     }
     Contract.Assert(false);
     throw new InvalidOperationException();
 }
Esempio n. 3
0
 private ExprParamPair GenNormalStmt(NormalStatement stmt, ParamList overlapCandidate)
 {
     Contract.Requires<ArgumentNullException>(stmt != null);
     Contract.Ensures(Contract.Result<ExprParamPair>() != null);
     if (stmt is Return)
         return GenReturn((Return)stmt, overlapCandidate);
     if (stmt is PhraseChain)
         return GenChain((PhraseChain)stmt, overlapCandidate);
     if (stmt is BlockExecute)
         return GenBlockExec((BlockExecute)stmt, overlapCandidate);
     Contract.Assert(false);
     throw new InvalidOperationException();
 }
Esempio n. 4
0
 public CondThenPair(Element cond, NormalStatement stmt)
 {
     Contract.Requires<ArgumentNullException>(cond != null);
     Contract.Requires<ArgumentNullException>(stmt != null);
     this.Condition = cond;
     this.Statement = stmt;
 }