params now have a value, too
[swftools.git] / lib / as3 / tokenizer.h
index 5e9452e..6acc38e 100644 (file)
@@ -32,6 +32,7 @@ DECLARE(token);
 DECLARE_LIST(token);
 DECLARE(param);
 DECLARE_LIST(param);
+DECLARE(params);
 DECLARE(typedcode);
 DECLARE_LIST(typedcode);
 
@@ -44,11 +45,20 @@ struct _token {
 struct _param {
     char*name;
     classinfo_t*type;
+    constant_t*value;
+};
+
+struct _params {
+    param_list_t*list;
+    char varargs;
 };
 
 struct _typedcode {
     code_t*c;
     classinfo_t*t;
+    
+    /* if t == TYPE_FUNCTION */
+    memberinfo_t*f;
 };
 
 extern char start_of_expression;