summaryrefslogtreecommitdiff
path: root/Source/Core/Absy.cs
diff options
context:
space:
mode:
authorGravatar Dan Liew <daniel.liew@imperial.ac.uk>2014-07-27 08:16:27 +0100
committerGravatar Dan Liew <daniel.liew@imperial.ac.uk>2014-07-27 08:16:27 +0100
commitd4762961dd719a0f0783551aea5a17203cbe42eb (patch)
treec05df92c8168f61ee27b69da3f0f731123c08882 /Source/Core/Absy.cs
parentb3954dd7d62d58b1e6f15e6b1a578567b442691c (diff)
Fix bug where Visitors could not visit Requires or Ensures because
the StdDispatch method was missing on both Classes.
Diffstat (limited to 'Source/Core/Absy.cs')
-rw-r--r--Source/Core/Absy.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/Absy.cs b/Source/Core/Absy.cs
index d6ac8754..d961eb3e 100644
--- a/Source/Core/Absy.cs
+++ b/Source/Core/Absy.cs
@@ -2434,6 +2434,10 @@ namespace Microsoft.Boogie {
tc.Error(this, "preconditions must be of type bool");
}
}
+
+ public override Absy StdDispatch(StandardVisitor visitor) {
+ return visitor.VisitRequires(this);
+ }
}
public class Ensures : Absy, IPotentialErrorNode {
@@ -2528,6 +2532,10 @@ namespace Microsoft.Boogie {
tc.Error(this, "postconditions must be of type bool");
}
}
+
+ public override Absy StdDispatch(StandardVisitor visitor) {
+ return visitor.VisitEnsures(this);
+ }
}
public class Procedure : DeclWithFormals {