diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-19 10:05:33 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-21 08:55:44 -0400 |
| commit | 5bdd01db885abb3df58a2ed9501f418fc58e7ee8 (patch) | |
| tree | e7fab701669db159608b3aab49feab6ac8f19038 /src | |
| parent | 93401ea027155fd72ec7850bd0ed74ab9e2b8b07 (diff) | |
Clone type and value exprs in the collector
Diffstat (limited to 'src')
| -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) |