check first (non-optional) param value, too
[swftools.git] / lib / as3 / mklib.c
index 5d9bd04..ff9cfbc 100644 (file)
@@ -104,7 +104,6 @@ void load_libraries(char*filename, int pass, FILE*fi)
     tosort=abc->classes;
     for(t=0;t<abc->classes->num;t++) {index[t]=t;}
     qsort(index, abc->classes->num, sizeof(int), compare_classes);
-
     for(t=0;t<abc->classes->num;t++) {
         abc_class_t*cls = array_getvalue(abc->classes, index[t]);
         int access = cls->classname->ns->access;
@@ -217,6 +216,18 @@ cont:
         if(id) free(id);
         if(superid) free(superid);
     }
+    
+    for(t=0;t<abc->scripts->num;t++) {
+        abc_script_t*s = array_getvalue(abc->scripts, t);
+        trait_list_t*l=0;
+       for(l=s->traits;l;l=l->next) {
+            trait_t*trait = l->trait;
+            if(trait->kind == TRAIT_METHOD) {
+               printf("%s\n", multiname_tostring(trait->name));
+           }
+       }
+    }
+
 
     swf_FreeABC(abc);
     memfile_close(file);tag->data=0;