summaryrefslogtreecommitdiff
path: root/src/parsetree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-11-08 17:02:22 -0500
committerAdrian Thurston <thurston@complang.org>2014-11-08 17:02:22 -0500
commita98868e3ab8decb58f15fcaf05301d84a93e5c6d (patch)
treeeec8b1b6089d3a5fb081a53537cab475708d8dee /src/parsetree.h
parent4ccad87e68cd505b0e2c4ddb41d3840c96ec71c2 (diff)
downloadcolm-a98868e3ab8decb58f15fcaf05301d84a93e5c6d.tar.gz
removed the inNew hack from TypeRef
Diffstat (limited to 'src/parsetree.h')
-rw-r--r--src/parsetree.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/parsetree.h b/src/parsetree.h
index d33abab0..1bf278fb 100644
--- a/src/parsetree.h
+++ b/src/parsetree.h
@@ -375,10 +375,10 @@ struct TokenDef
noPostIgnore(false), noPreIgnore(false), isZero(false)
{}
- static TokenDef *cons( const String &name, const String &literal, bool isLiteral, bool isIgnore,
- LexJoin *join, CodeBlock *codeBlock, const InputLoc &semiLoc,
- int longestMatchId, Namespace *nspace, RegionSet *regionSet,
- ObjectDef *objectDef, Context *contextIn )
+ static TokenDef *cons( const String &name, const String &literal,
+ bool isLiteral, bool isIgnore, LexJoin *join, CodeBlock *codeBlock,
+ const InputLoc &semiLoc, int longestMatchId, Namespace *nspace,
+ RegionSet *regionSet, ObjectDef *objectDef, Context *contextIn )
{
TokenDef *t = new TokenDef;
@@ -1980,8 +1980,7 @@ struct TypeRef
uniqueType(0),
searchUniqueType(0),
generic(0),
- searchTypeRef(0),
- inNew(false)
+ searchTypeRef(0)
{}
/* Qualification and a type name. These require lookup. */
@@ -2159,8 +2158,6 @@ struct TypeRef
UniqueType *searchUniqueType;
GenericType *generic;
TypeRef *searchTypeRef;
-
- bool inNew;
};
typedef DList<ObjectField> ParameterList;