mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
Parse comments on enums fields
This commit is contained in:
@@ -811,11 +811,12 @@ OdinDocEntityIndex odin_doc_add_entity(OdinDocWriter *w, Entity *e) {
|
||||
comment = e->decl_info->comment;
|
||||
docs = e->decl_info->docs;
|
||||
}
|
||||
if (!comment && e->kind == Entity_Variable) {
|
||||
comment = e->Variable.comment;
|
||||
}
|
||||
if (!docs && e->kind == Entity_Variable) {
|
||||
docs = e->Variable.docs;
|
||||
if (e->kind == Entity_Variable) {
|
||||
if (!comment) { comment = e->Variable.comment; }
|
||||
if (!docs) { docs = e->Variable.docs; }
|
||||
} else if (e->kind == Entity_Constant) {
|
||||
if (!comment) { comment = e->Constant.comment; }
|
||||
if (!docs) { docs = e->Constant.docs; }
|
||||
}
|
||||
|
||||
String link_name = {};
|
||||
|
||||
Reference in New Issue
Block a user