summaryrefslogtreecommitdiff
path: root/Source/Dafny/Rewriter.cs
diff options
context:
space:
mode:
authorGravatar chrishaw <unknown>2015-04-02 19:59:14 -0700
committerGravatar chrishaw <unknown>2015-04-02 19:59:14 -0700
commit4d502277ed355fc739cf0c1856044c30645fcd13 (patch)
tree67d4b59eb4b1735e18119c87a8ce7b793f0d8ad3 /Source/Dafny/Rewriter.cs
parent8a332057c2c9fc76e5fb112d430404d1aa47ea0d (diff)
Eliminate redundant checks of newtype and opaque function well-formedness from included files
Diffstat (limited to 'Source/Dafny/Rewriter.cs')
-rw-r--r--Source/Dafny/Rewriter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Rewriter.cs b/Source/Dafny/Rewriter.cs
index 4cda8fd8..091ee24a 100644
--- a/Source/Dafny/Rewriter.cs
+++ b/Source/Dafny/Rewriter.cs
@@ -492,7 +492,7 @@ namespace Microsoft.Dafny
newToken._val = fWithBody.Name;
newToken._kind = f.tok.kind;
newToken._pos = f.tok.pos;
- fWithBody.tok = newToken;
+ fWithBody.tok = (f.tok is IncludeToken) ? new IncludeToken(newToken) : (Boogie.IToken)newToken;
// Annotate the new function so we remember that we introduced it
fWithBody.Attributes = new Attributes("opaque_full", new List<Expression>(), fWithBody.Attributes);