diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-03 10:11:39 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-03 13:41:09 -0400 |
| commit | 7c8439ef9ab2243339583a492eac0c867a0b1d4e (patch) | |
| tree | 21f49eb4b705bba96844340da457a8625b4502f7 /src/server/symbol.odin | |
| parent | fd621d7628333e0bc5c0fc75f2faeb51ab12c2df (diff) | |
Add documentation to enum fields
Diffstat (limited to 'src/server/symbol.odin')
| -rw-r--r-- | src/server/symbol.odin | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/symbol.odin b/src/server/symbol.odin index ad16339..ab3c287 100644 --- a/src/server/symbol.odin +++ b/src/server/symbol.odin @@ -77,6 +77,8 @@ SymbolEnumValue :: struct { values: []^ast.Expr, base_type: ^ast.Expr, ranges: []common.Range, + docs: []^ast.Comment_Group, + comments: []^ast.Comment_Group, } SymbolUnionValue :: struct { @@ -793,7 +795,7 @@ construct_bit_field_field_symbol :: proc(symbol: ^Symbol, parent_name: string, v construct_enum_field_symbol :: proc(symbol: ^Symbol, value: SymbolEnumValue, index: int) { symbol.type = .Field - //symbol.doc = get_doc(value.docs[index], context.temp_allocator) - //symbol.comment = get_comment(value.comments[index]) + symbol.doc = get_doc(value.docs[index], context.temp_allocator) + symbol.comment = get_comment(value.comments[index]) symbol.signature = get_enum_field_signature(value, index) } |