diff options
author | 2014-07-27 08:16:27 +0100 | |
---|---|---|
committer | 2014-07-27 08:16:27 +0100 | |
commit | d4762961dd719a0f0783551aea5a17203cbe42eb (patch) | |
tree | c05df92c8168f61ee27b69da3f0f731123c08882 /Source/Core/Absy.cs | |
parent | b3954dd7d62d58b1e6f15e6b1a578567b442691c (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.cs | 8 |
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 {
|