Use enum value init expression instead of numeric value in doc format

This commit is contained in:
Franz Hoeltermann
2026-08-11 13:51:06 +02:00
parent 5f321d687c
commit a311d8f6df
3 changed files with 5 additions and 0 deletions

View File

@@ -205,6 +205,7 @@ struct Entity {
i32 field_group_index;
CommentGroup *docs;
CommentGroup *comment;
Ast *init_expr; // only used for enum values
} Constant;
struct {
Ast *type_expr; // only used for some variables within procedure bodies