mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Cleanup
This commit is contained in:
parent
f2fd469152
commit
aeb3948f3c
2 changed files with 7 additions and 2 deletions
|
@ -266,5 +266,10 @@ static zend_always_inline zend_ast *zend_ast_create_assign_op(uint32_t opcode, z
|
||||||
static zend_always_inline zend_ast *zend_ast_create_cast(uint32_t type, zend_ast *op0) {
|
static zend_always_inline zend_ast *zend_ast_create_cast(uint32_t type, zend_ast *op0) {
|
||||||
return zend_ast_create_ex(ZEND_AST_CAST, type, op0);
|
return zend_ast_create_ex(ZEND_AST_CAST, type, op0);
|
||||||
}
|
}
|
||||||
|
static zend_always_inline void zend_ast_list_rtrim(zend_ast *ast) {
|
||||||
|
zend_ast_list *list = zend_ast_get_list(ast);
|
||||||
|
if (list->child[list->children - 1] == NULL) {
|
||||||
|
list->children--;
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1183,7 +1183,7 @@ property_name:
|
||||||
;
|
;
|
||||||
|
|
||||||
array_pair_list:
|
array_pair_list:
|
||||||
non_empty_array_pair_list { /* allow single trailing comma */ zend_ast_list *list = zend_ast_get_list($$ = $1); if (list->child[list->children - 1] == NULL) { list->children--; } }
|
non_empty_array_pair_list { /* allow single trailing comma */ zend_ast_list_rtrim($$ = $1); }
|
||||||
;
|
;
|
||||||
|
|
||||||
possible_array_pair:
|
possible_array_pair:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue