@@ -252,6 +252,8 @@ static void alloc_value_index_struct( struct value_index_alloc*,
252
252
struct multi_value * , struct structure * );
253
253
static void test_script_number ( struct semantic * semantic ,
254
254
struct script * script );
255
+ static void test_script_param_list ( struct semantic * semantic ,
256
+ struct script * script );
255
257
static void test_script_body ( struct semantic * semantic ,
256
258
struct script * script );
257
259
static void init_builtin_script_aliases ( struct semantic * semantic ,
@@ -2269,6 +2271,7 @@ void s_test_script( struct semantic* semantic, struct script* script ) {
2269
2271
if ( script -> number ) {
2270
2272
test_script_number ( semantic , script );
2271
2273
}
2274
+ test_script_param_list ( semantic , script );
2272
2275
test_script_body ( semantic , script );
2273
2276
}
2274
2277
@@ -2328,6 +2331,16 @@ void test_script_number( struct semantic* semantic, struct script* script ) {
2328
2331
}
2329
2332
}
2330
2333
2334
+ void test_script_param_list ( struct semantic * semantic ,
2335
+ struct script * script ) {
2336
+ struct param * param = script -> params ;
2337
+ while ( param ) {
2338
+ calc_param_size ( param );
2339
+ param -> object .resolved = true;
2340
+ param = param -> next ;
2341
+ }
2342
+ }
2343
+
2331
2344
void test_script_body ( struct semantic * semantic , struct script * script ) {
2332
2345
s_add_scope ( semantic , true );
2333
2346
struct builtin_script_aliases aliases ;
@@ -2337,7 +2350,6 @@ void test_script_body( struct semantic* semantic, struct script* script ) {
2337
2350
if ( param -> name ) {
2338
2351
s_bind_local_name ( semantic , param -> name , & param -> object , true );
2339
2352
}
2340
- param -> object .resolved = true;
2341
2353
param = param -> next ;
2342
2354
}
2343
2355
struct func_test test ;
0 commit comments