summaryrefslogtreecommitdiff
path: root/src/parsetree.h
diff options
context:
space:
mode:
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;