diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-24 21:20:56 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-06-24 21:56:09 -0400 |
| commit | 98d8cc304ee4e433e9011c1e2faef779ae86df35 (patch) | |
| tree | 49cc6f857b65d79ce0d4b1cd4bf17c0219afe365 /src/server/symbol.odin | |
| parent | e4804807bb7c7a26b2bff10919d719a1a430870f (diff) | |
Correctly clone comment groups
Diffstat (limited to 'src/server/symbol.odin')
| -rw-r--r-- | src/server/symbol.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/symbol.odin b/src/server/symbol.odin index 7bd6cd2..a458f9e 100644 --- a/src/server/symbol.odin +++ b/src/server/symbol.odin @@ -255,6 +255,7 @@ symbol_struct_value_builder_make_symbol_symbol_struct_value :: proc( ranges = slice.to_dynamic(v.ranges, allocator), docs = slice.to_dynamic(v.docs, allocator), comments = slice.to_dynamic(v.comments, allocator), + usings = v.usings, from_usings = slice.to_dynamic(v.from_usings, allocator), unexpanded_usings = slice.to_dynamic(v.unexpanded_usings, allocator), } @@ -304,6 +305,7 @@ write_struct_type :: proc( if identifier, ok := n.derived.(^ast.Ident); ok && field.type != nil { if .Using in field.flags { append(&b.unexpanded_usings, len(b.types)) + b.usings[len(b.types)] = struct{}{} } append(&b.names, identifier.name) |