mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
Parse comments on enums fields
This commit is contained in:
@@ -9341,6 +9341,13 @@ gbString write_expr_to_string(gbString str, Ast *node, bool shorthand) {
|
||||
str = gb_string_appendc(str, " = ");
|
||||
str = write_expr_to_string(str, fv->value, shorthand);
|
||||
case_end;
|
||||
case_ast_node(fv, EnumFieldValue, node);
|
||||
str = write_expr_to_string(str, fv->name, shorthand);
|
||||
if (fv->value) {
|
||||
str = gb_string_appendc(str, " = ");
|
||||
str = write_expr_to_string(str, fv->value, shorthand);
|
||||
}
|
||||
case_end;
|
||||
|
||||
case_ast_node(ht, HelperType, node);
|
||||
str = gb_string_appendc(str, "#type ");
|
||||
|
||||
Reference in New Issue
Block a user