Ejemplo n.º 1
0
 public override Statement VisitAssumption(Assumption assumption) {
   bool savedInsideAssertion = this.insideAssertion;
   this.insideAssertion = true;
   try {
     return base.VisitAssumption(assumption);
   } finally {
     this.insideAssertion = savedInsideAssertion;
   }
 }
Ejemplo n.º 2
0
 public virtual Statement VisitAssumption(Assumption assumption)
 {
     if (assumption == null) return null;
     assumption.Condition = this.VisitExpression(assumption.Condition);
     return assumption;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 public override Statement VisitAssumption(Assumption Assumption)
 {
     if (Assumption == null) return null;
     return base.VisitAssumption((Assumption)Assumption.Clone());
 }
Ejemplo n.º 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); }