mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 07:17:48 -04:00
Parse comments on enums fields
This commit is contained in:
1 parent
f20105ddfe
commit
fe0b5bf4e2
6 files changed
+74
-17
No files matched your search
@@ -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