aboutsummaryrefslogtreecommitdiff
path: root/src/server/collector.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/collector.odin')
-rw-r--r--src/server/collector.odin5
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") {