@@ -521,7 +521,7 @@ function_declaration_statement:
521521 function returns_ref T_STRING backup_doc_comment ' (' parameter_list ' )' return_type
522522 backup_fn_flags ' {' inner_statement_list ' }' backup_fn_flags
523523 { $$ = zend_ast_create_decl(ZEND_AST_FUNC_DECL, $2 | $13 , $1 , $4 ,
524- zend_ast_get_str ($3 ), $6, NULL, $11, $8); CG(extra_fn_flags) = $9 ; }
524+ zend_ast_get_str ($3 ), $6, NULL, $11, $8, NULL ); CG(extra_fn_flags) = $9 ; }
525525;
526526
527527is_reference :
@@ -537,10 +537,10 @@ is_variadic:
537537class_declaration_statement :
538538 class_modifiers T_CLASS { $<num>$ = CG(zend_lineno); }
539539 T_STRING extends_from implements_list backup_doc_comment ' {' class_statement_list ' }'
540- { $$ = zend_ast_create_decl(ZEND_AST_CLASS, $1 , $<num>3 , $7 , zend_ast_get_str($4 ), $5 , $6 , $9 , NULL ); }
540+ { $$ = zend_ast_create_decl(ZEND_AST_CLASS, $1 , $<num>3 , $7 , zend_ast_get_str($4 ), $5 , $6 , $9 , NULL , NULL ); }
541541 | T_CLASS { $<num>$ = CG(zend_lineno); }
542542 T_STRING extends_from implements_list backup_doc_comment ' {' class_statement_list ' }'
543- { $$ = zend_ast_create_decl(ZEND_AST_CLASS, 0 , $<num>2 , $6 , zend_ast_get_str($3 ), $4 , $5 , $8 , NULL ); }
543+ { $$ = zend_ast_create_decl(ZEND_AST_CLASS, 0 , $<num>2 , $6 , zend_ast_get_str($3 ), $4 , $5 , $8 , NULL , NULL ); }
544544;
545545
546546class_modifiers :
@@ -557,13 +557,13 @@ class_modifier:
557557trait_declaration_statement :
558558 T_TRAIT { $<num>$ = CG(zend_lineno); }
559559 T_STRING backup_doc_comment ' {' class_statement_list ' }'
560- { $$ = zend_ast_create_decl(ZEND_AST_CLASS, ZEND_ACC_TRAIT, $<num>2 , $4 , zend_ast_get_str($3 ), NULL , NULL , $6 , NULL ); }
560+ { $$ = zend_ast_create_decl(ZEND_AST_CLASS, ZEND_ACC_TRAIT, $<num>2 , $4 , zend_ast_get_str($3 ), NULL , NULL , $6 , NULL , NULL ); }
561561;
562562
563563interface_declaration_statement :
564564 T_INTERFACE { $<num>$ = CG(zend_lineno); }
565565 T_STRING interface_extends_list backup_doc_comment ' {' class_statement_list ' }'
566- { $$ = zend_ast_create_decl(ZEND_AST_CLASS, ZEND_ACC_INTERFACE, $<num>2 , $5 , zend_ast_get_str($3 ), NULL , $4 , $7 , NULL ); }
566+ { $$ = zend_ast_create_decl(ZEND_AST_CLASS, ZEND_ACC_INTERFACE, $<num>2 , $5 , zend_ast_get_str($3 ), NULL , $4 , $7 , NULL , NULL ); }
567567;
568568
569569extends_from :
@@ -790,7 +790,7 @@ attributed_class_statement:
790790 | method_modifiers function returns_ref identifier backup_doc_comment ' (' parameter_list ' )'
791791 return_type backup_fn_flags method_body backup_fn_flags
792792 { $$ = zend_ast_create_decl(ZEND_AST_METHOD, $3 | $1 | $12 , $2 , $5 ,
793- zend_ast_get_str ($4 ), $7, NULL, $11, $9); CG(extra_fn_flags) = $10 ; }
793+ zend_ast_get_str ($4 ), $7, NULL, $11, $9, NULL ); CG(extra_fn_flags) = $10 ; }
794794
795795class_statement :
796796 attributed_class_statement { $$ = $1 ; }
@@ -928,7 +928,7 @@ anonymous_class:
928928 extends_from implements_list backup_doc_comment ' {' class_statement_list ' }' {
929929 zend_ast *decl = zend_ast_create_decl(
930930 ZEND_AST_CLASS, ZEND_ACC_ANON_CLASS, $<num>2 , $6 , NULL ,
931- $4 , $5 , $8 , NULL );
931+ $4 , $5 , $8 , NULL , NULL );
932932 $$ = zend_ast_create(ZEND_AST_NEW, decl, $3 );
933933 }
934934;
@@ -1072,11 +1072,11 @@ inline_function:
10721072 backup_fn_flags ' {' inner_statement_list ' }' backup_fn_flags
10731073 { $$ = zend_ast_create_decl(ZEND_AST_CLOSURE, $2 | $13 , $1 , $3 ,
10741074 zend_string_init (" {closure}" , sizeof (" {closure}" ) - 1, 0),
1075- $5, $7, $11, $8); CG(extra_fn_flags) = $9 ; }
1075+ $5, $7, $11, $8, NULL ); CG(extra_fn_flags) = $9 ; }
10761076 | fn returns_ref ' (' parameter_list ' )' return_type backup_doc_comment T_DOUBLE_ARROW backup_fn_flags backup_lex_pos expr backup_fn_flags
10771077 { $$ = zend_ast_create_decl(ZEND_AST_ARROW_FUNC, $2 | $12 , $1 , $7 ,
10781078 zend_string_init (" {closure}" , sizeof (" {closure}" ) - 1, 0), $4, NULL,
1079- zend_ast_create(ZEND_AST_RETURN, $11 ), $6);
1079+ zend_ast_create(ZEND_AST_RETURN, $11 ), $6, NULL );
10801080 ((zend_ast_decl *) $$ )->lex_pos = $10 ;
10811081 CG (extra_fn_flags) = $9; }
10821082;
0 commit comments