diff options
author | 0biha <unknown> | 2015-01-01 18:23:20 +0100 |
---|---|---|
committer | 0biha <unknown> | 2015-01-01 18:23:20 +0100 |
commit | 79c6aec21f69a6d8968fdd96834d591c1e505260 (patch) | |
tree | df95d4ae79dbb323e61b2d392f0415ac46c2809a /Source/Core/Util.cs | |
parent | 1ed6c26e0ef401481a37aac2c2838b7e96bfa3b4 (diff) |
Made invariant of class 'IfThenElse' robust by changing the design
(replaced public field by private field + getter/setter)
Diffstat (limited to 'Source/Core/Util.cs')
-rw-r--r-- | Source/Core/Util.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Util.cs b/Source/Core/Util.cs index b28ac042..73008742 100644 --- a/Source/Core/Util.cs +++ b/Source/Core/Util.cs @@ -229,6 +229,12 @@ namespace Microsoft.Boogie { this.SetToken(t => absy.tok = t);
}
+ public void SetToken(IfThenElse expr)
+ {
+ Contract.Requires(expr != null);
+ this.SetToken(t => expr.tok = t);
+ }
+
public void SetToken(Action<IToken> setter) {
Contract.Requires(setter != null);
if (this.setTokens) {
|