mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Handle class const doc comment
Property doc comments not yet handled
This commit is contained in:
parent
222430d99c
commit
fd7387a761
2 changed files with 4 additions and 3 deletions
|
@ -6545,8 +6545,6 @@ void zend_compile_class_const_decl(zend_ast *ast TSRMLS_DC) {
|
|||
zend_error_noreturn(E_COMPILE_ERROR, "Cannot redefine class constant %s::%s",
|
||||
ce->name->val, name);
|
||||
}
|
||||
|
||||
// TODO.AST doc comment
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -628,7 +628,10 @@ class_statement_list:
|
|||
class_statement:
|
||||
variable_modifiers property_list ';'
|
||||
{ $$.u.ast = $2.u.ast; $$.u.ast->attr = Z_LVAL($1.u.constant); AS($$); }
|
||||
| class_const_list ';' { $$.u.ast = $1.u.ast; AS($$); }
|
||||
| class_const_list ';'
|
||||
{ $$.u.ast = $1.u.ast;
|
||||
if (CG(doc_comment)) { STR_RELEASE(CG(doc_comment)); CG(doc_comment) = NULL; }
|
||||
AS($$); }
|
||||
| trait_use_statement
|
||||
| method_modifiers function returns_ref T_STRING '(' parameter_list ')' method_body
|
||||
{ $$.u.ast = zend_ast_create_func_decl(ZEND_AST_METHOD, $3.EA | Z_LVAL($1.u.constant),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue