diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-30 19:44:58 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-30 19:46:57 -0400 |
| commit | 0583fbd35b14e32b848972d1a0d916f7bf9185a3 (patch) | |
| tree | 85e75b68924d1b27c8c2bbeaa2f624ee5dde1840 /src/server/symbol.odin | |
| parent | aae20c2190e619715b9f9a55e757d50c2d517cd7 (diff) | |
Show struct and bitfield fields with workspace and document symbols
Diffstat (limited to 'src/server/symbol.odin')
| -rw-r--r-- | src/server/symbol.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/symbol.odin b/src/server/symbol.odin index 7fab60c..3a4b7c6 100644 --- a/src/server/symbol.odin +++ b/src/server/symbol.odin @@ -772,6 +772,8 @@ symbol_kind_to_type :: proc(type: SymbolType) -> SymbolKind { return .Enum case .Keyword: return .Key + case .Field: + return .Field case: return .Null } @@ -851,6 +853,7 @@ construct_struct_field_symbol :: proc(symbol: ^Symbol, parent_name: string, valu symbol.parent_name = parent_name symbol.doc = get_doc(value.types[index], value.docs[index], context.temp_allocator) symbol.comment = get_comment(value.comments[index]) + symbol.range = value.ranges[index] } construct_bit_field_field_symbol :: proc( @@ -865,6 +868,7 @@ construct_bit_field_field_symbol :: proc( symbol.doc = get_doc(value.types[index], value.docs[index], context.temp_allocator) symbol.comment = get_comment(value.comments[index]) symbol.signature = get_bit_field_field_signature(value, index) + symbol.range = value.ranges[index] } construct_enum_field_symbol :: proc(symbol: ^Symbol, value: SymbolEnumValue, index: int) { |