diff options
author | 2015-04-02 19:59:14 -0700 | |
---|---|---|
committer | 2015-04-02 19:59:14 -0700 | |
commit | 4d502277ed355fc739cf0c1856044c30645fcd13 (patch) | |
tree | 67d4b59eb4b1735e18119c87a8ce7b793f0d8ad3 /Source/Dafny/Rewriter.cs | |
parent | 8a332057c2c9fc76e5fb112d430404d1aa47ea0d (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.cs | 2 |
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);
|