+static void innerfunction(char*name, params_t*params, classinfo_t*return_type)
+{
+ parserassert(state->method && state->method->info);
+ memberinfo_t*parent_method = state->method->info;
+
+ if(as3_pass==1) {
+ // not valid yet
+ params = 0;
+ return_type = 0;
+ }
+
+ new_state();
+ state->method = rfx_calloc(sizeof(methodstate_t));
+ state->method->inner = 1;
+
+ NEW(memberinfo_t,minfo);
+ minfo->return_type = return_type;
+ minfo->name = name;
+
+ if(!parent_method->subfunctions)
+ parent_method->subfunctions = dict_new();
+
+ dict_put(parent_method->subfunctions, name, minfo);
+ state->method->info = minfo;
+}
+