summaryrefslogtreecommitdiff
path: root/src/parsetree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-05-15 13:14:28 -0400
committerAdrian Thurston <thurston@colm.net>2018-05-15 13:14:28 -0400
commit2d8d299939bbdabad5cc06d4a55c826540f073f3 (patch)
tree916cbc1f67c8d0e2aff46babe0d480b1e235c48e /src/parsetree.h
parentb911a8b4cac2b335b4e093c0ebbd36fbc56495fe (diff)
downloadcolm-2d8d299939bbdabad5cc06d4a55c826540f073f3.tar.gz
unified parse frag and finish
Diffstat (limited to 'src/parsetree.h')
-rw-r--r--src/parsetree.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/parsetree.h b/src/parsetree.h
index 81157aee..38ed154e 100644
--- a/src/parsetree.h
+++ b/src/parsetree.h
@@ -2425,10 +2425,17 @@ typedef DList<ObjectField> ParameterList;
struct ObjectMethod
{
+ enum Type
+ {
+ Call,
+ ParseFinish
+ };
+
ObjectMethod( TypeRef *returnTypeRef, String name,
int opcodeWV, int opcodeWC, int numParams,
UniqueType **types, ParameterList *paramList, bool isConst )
:
+ type(Call),
returnUT(0),
returnTypeRef(returnTypeRef),
returnTypeId(0),
@@ -2454,6 +2461,7 @@ struct ObjectMethod
UniqueType **types, ParameterList *paramList,
bool isConst )
:
+ type(Call),
returnUT(returnUT),
returnTypeRef(0),
returnTypeId(0),
@@ -2476,6 +2484,7 @@ struct ObjectMethod
memcpy( this->paramUTs, types, sizeof(UniqueType*)*numParams );
}
+ Type type;
UniqueType *returnUT;
TypeRef *returnTypeRef;
long returnTypeId;