Пример #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());
 }
Пример #5
0
 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); }