@@ -2191,17 +2191,17 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
2191
2191
2192
2192
case ZEND_AST_CONST_DECL : {
2193
2193
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. */
2195
2195
if (ast_list -> child [ast_list -> children - 1 ]-> kind == ZEND_AST_ATTRIBUTE_LIST ) {
2196
2196
zend_ast_export_attributes (
2197
2197
str ,
2198
2198
ast_list -> child [ast_list -> children - 1 ],
2199
2199
indent ,
2200
2200
1
2201
2201
);
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. */
2205
2205
smart_str_appends (str , "const " );
2206
2206
zend_ast_export_list_ex (str , ast_list , 1 , 20 , indent , ast_list -> children - 1 );
2207
2207
break ;
@@ -2907,9 +2907,9 @@ zend_ast * ZEND_FASTCALL zend_ast_with_attributes(zend_ast *ast, zend_ast *attr)
2907
2907
ast -> child [1 ] = attr ;
2908
2908
break ;
2909
2909
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. */
2913
2913
zend_ast_list_add (ast , attr );
2914
2914
break ;
2915
2915
EMPTY_SWITCH_DEFAULT_CASE ()
0 commit comments