Remove no longer necessary class parsing workaround

This was split to work around the attribute assignment bug fixed
in the previous commit, and as such is no longer necessary.
This commit is contained in:
Nikita Popov 2020-12-20 10:53:45 +01:00
parent d3d1ee470a
commit 7284a4d019
2 changed files with 898 additions and 903 deletions

View File

@ -348,10 +348,7 @@ function_declaration_statement:
;
class_declaration_statement:
class_entry_type identifier extends_from implements_list '{' class_statement_list '}'
{ $$ = Stmt\Class_[$2, ['type' => $1, 'extends' => $3, 'implements' => $4, 'stmts' => $6, 'attrGroups' => []]];
$this->checkClass($$, #2); }
| attributes class_entry_type identifier extends_from implements_list '{' class_statement_list '}'
optional_attributes class_entry_type identifier extends_from implements_list '{' class_statement_list '}'
{ $$ = Stmt\Class_[$3, ['type' => $2, 'extends' => $4, 'implements' => $5, 'stmts' => $7, 'attrGroups' => $1]];
$this->checkClass($$, #3); }
| optional_attributes T_INTERFACE identifier interface_extends_list '{' class_statement_list '}'

File diff suppressed because it is too large Load Diff