@@ -2191,17 +2191,17 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
21912191
21922192 case ZEND_AST_CONST_DECL : {
21932193 zend_ast_list * ast_list = zend_ast_get_list (ast );
2194- // Attributes are stored at the end of the list if present;
2194+ /* Attributes are stored at the end of the list if present. */
21952195 if (ast_list -> child [ast_list -> children - 1 ]-> kind == ZEND_AST_ATTRIBUTE_LIST ) {
21962196 zend_ast_export_attributes (
21972197 str ,
21982198 ast_list -> child [ast_list -> children - 1 ],
21992199 indent ,
22002200 1
22012201 );
2202- // So that the list printing doesn't try to print the attributes,
2203- // use zend_ast_export_list_ex() to override the number of children
2204- // to print
2202+ /* So that the list printing doesn't try to print the attributes,
2203+ * use zend_ast_export_list_ex() to override the number of children
2204+ * to print. */
22052205 smart_str_appends (str , "const " );
22062206 zend_ast_export_list_ex (str , ast_list , 1 , 20 , indent , ast_list -> children - 1 );
22072207 break ;
@@ -2907,9 +2907,9 @@ zend_ast * ZEND_FASTCALL zend_ast_with_attributes(zend_ast *ast, zend_ast *attr)
29072907 ast -> child [1 ] = attr ;
29082908 break ;
29092909 case ZEND_AST_CONST_DECL :
2910- // Since constants are already stored in a list, just add the attributes
2911- // to that list instead of storing them elsewhere;
2912- // zend_compile_const_decl() checks the kind of the list elements
2910+ /* Since constants are already stored in a list, just add the attributes
2911+ * to that list instead of storing them elsewhere;
2912+ * zend_compile_const_decl() checks the kind of the list elements. */
29132913 zend_ast_list_add (ast , attr );
29142914 break ;
29152915 EMPTY_SWITCH_DEFAULT_CASE ()
0 commit comments