示例#1
0
 public override Statement VisitAssumption(Assumption assumption) {
   bool savedInsideAssertion = this.insideAssertion;
   this.insideAssertion = true;
   try {
     return base.VisitAssumption(assumption);
   } finally {
     this.insideAssertion = savedInsideAssertion;
   }
 }
示例#2
0
 public virtual Statement VisitAssumption(Assumption assumption)
 {
     if (assumption == null) return null;
     assumption.Condition = this.VisitExpression(assumption.Condition);
     return assumption;
 }
示例#3
0
 private Assumption ParseAssumption(TokenSet followers){
   Debug.Assert(this.currentToken == Token.Assume);
   Assumption result = new Assumption();
   result.SourceContext = this.scanner.CurrentSourceContext;
   this.GetNextToken();
   result.Condition = this.ParseExpression(followers|Token.Semicolon);
   this.SkipSemiColon(followers);
   return result;
 }
示例#4
0
 public override Statement VisitAssumption(Assumption Assumption)
 {
     if (Assumption == null) return null;
     return base.VisitAssumption((Assumption)Assumption.Clone());
 }
 public EventingVisitor(Action<Assumption> visitAssumption) { VisitedAssumption += visitAssumption; } public event Action<Assumption> VisitedAssumption; public override Statement VisitAssumption(Assumption assumption) { if (VisitedAssumption != null) VisitedAssumption(assumption); return base.VisitAssumption(assumption); }