diff options
author | Adrian Thurston <thurston@colm.net> | 2018-05-15 13:14:28 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-05-15 13:14:28 -0400 |
commit | 2d8d299939bbdabad5cc06d4a55c826540f073f3 (patch) | |
tree | 916cbc1f67c8d0e2aff46babe0d480b1e235c48e /src/parsetree.h | |
parent | b911a8b4cac2b335b4e093c0ebbd36fbc56495fe (diff) | |
download | colm-2d8d299939bbdabad5cc06d4a55c826540f073f3.tar.gz |
unified parse frag and finish
Diffstat (limited to 'src/parsetree.h')
-rw-r--r-- | src/parsetree.h | 9 |
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; |