diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-31 08:03:59 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-31 08:03:59 -0400 |
| commit | 49d12e2a78fb0a9f92b571aca79ef027a444d16f (patch) | |
| tree | bb60c70e1a08a5553078466a342131d0901bc2dc /src/server | |
| parent | 62666560203d981f5fd21426c44880fd044e10de (diff) | |
Remove collector unique string indexing for comments and docs
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/collector.odin | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/collector.odin b/src/server/collector.odin index 1a7c221..8ffa1e4 100644 --- a/src/server/collector.odin +++ b/src/server/collector.odin @@ -631,11 +631,10 @@ collect_symbols :: proc(collection: ^SymbolCollection, file: ast.File, uri: stri symbol.range = common.get_token_range(expr.name_expr, file.src) symbol.name = get_index_unique_string(collection, name) symbol.type = token_type - doc := get_doc(expr.docs, collection.allocator) - symbol.doc = get_index_unique_string(collection, doc) + symbol.doc = get_doc(expr.docs, collection.allocator) symbol.uri = get_index_unique_string(collection, uri) comment := get_file_comment(file, symbol.range.start.line + 1) - symbol.comment = get_index_unique_string(collection, get_comment(comment)) + symbol.comment = get_comment(comment) symbol.flags |= {.Distinct} if expr.builtin || strings.contains(uri, "builtin.odin") { |