diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-21 12:22:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-21 12:22:45 -0400 |
| commit | 1009de179a717c8b355acb8b1268fedc9b2d089c (patch) | |
| tree | a9728e212a63dc84c9f1ed0e2a567ce62687375c /src/server/collector.odin | |
| parent | a79efd27be8e6951aaa5b7e4bd785121e857c32c (diff) | |
| parent | 225b794cd3bbb0f116a4cf6e389aa5194c5eca46 (diff) | |
Merge pull request #1028 from BradLewis/feat/rework-const-hover-info
Feat/rework const hover info
Diffstat (limited to 'src/server/collector.odin')
| -rw-r--r-- | src/server/collector.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/collector.odin b/src/server/collector.odin index 3b52ca2..607521e 100644 --- a/src/server/collector.odin +++ b/src/server/collector.odin @@ -707,6 +707,8 @@ collect_symbols :: proc(collection: ^SymbolCollection, file: ast.File, uri: stri symbol.type = token_type symbol.doc = get_doc(expr.name_expr, expr.docs, collection.allocator) symbol.uri = get_index_unique_string(collection, uri) + symbol.type_expr = clone_type(expr.type_expr, collection.allocator, &collection.unique_strings) + symbol.value_expr = clone_type(expr.value_expr, collection.allocator, &collection.unique_strings) comment, _ := get_file_comment(file, symbol.range.start.line + 1) symbol.comment = strings.clone(get_comment(comment), collection.allocator) |