summaryrefslogtreecommitdiff
path: root/Source/Dafny/Parser.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/Parser.cs
parent8a332057c2c9fc76e5fb112d430404d1aa47ea0d (diff)
Eliminate redundant checks of newtype and opaque function well-formedness from included files
Diffstat (limited to 'Source/Dafny/Parser.cs')
-rw-r--r--Source/Dafny/Parser.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Dafny/Parser.cs b/Source/Dafny/Parser.cs
index 6342e9c7..3085c975 100644
--- a/Source/Dafny/Parser.cs
+++ b/Source/Dafny/Parser.cs
@@ -795,10 +795,10 @@ bool IsType(ref IToken pt) {
if (baseType == null) { baseType = new OperationTypeProxy(true, true, false, false, false); }
Expect(22);
Expression(out wh, false, true);
- td = new NewtypeDecl(id, id.val, module, new BoundVar(bvId, bvId.val, baseType), wh, attrs);
+ td = new NewtypeDecl(theVerifyThisFile ? id : new IncludeToken(id), id.val, module, new BoundVar(bvId, bvId.val, baseType), wh, attrs);
} else if (StartOf(3)) {
Type(out baseType);
- td = new NewtypeDecl(id, id.val, module, baseType, attrs);
+ td = new NewtypeDecl(theVerifyThisFile ? id : new IncludeToken(id), id.val, module, baseType, attrs);
} else SynErr(142);
}