Пример #1
0
 public CondThenPair(Element cond, NormalStatement stmt)
 {
     Contract.Requires <ArgumentNullException>(cond != null);
     Contract.Requires <ArgumentNullException>(stmt != null);
     this.Condition = cond;
     this.Statement = stmt;
 }
Пример #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();
 }
Пример #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();
 }
Пример #4
0
 public CondThenPair(Element cond, NormalStatement stmt)
 {
     Contract.Requires<ArgumentNullException>(cond != null);
     Contract.Requires<ArgumentNullException>(stmt != null);
     this.Condition = cond;
     this.Statement = stmt;
 }