aboutsummaryrefslogtreecommitdiff
path: root/src/server/collector.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-07 11:56:37 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-07 11:56:37 -0400
commit1c4a7bc3544d355bcd041a0673758bbf072a55f9 (patch)
tree2f864e545254acbbbdf8f8c567cc8731cdfcc947 /src/server/collector.odin
parentf9c23d7ec2841d8580fb55acd4fb26aaae8d605b (diff)
Remove incorrectly added doc comments from symbols
Diffstat (limited to 'src/server/collector.odin')
-rw-r--r--src/server/collector.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/collector.odin b/src/server/collector.odin
index c06879d..eaf1229 100644
--- a/src/server/collector.odin
+++ b/src/server/collector.odin
@@ -644,7 +644,7 @@ 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
- symbol.doc = get_doc(expr.docs, collection.allocator)
+ symbol.doc = get_doc(expr.name_expr, expr.docs, collection.allocator)
symbol.uri = get_index_unique_string(collection, uri)
comment, _ := get_file_comment(file, symbol.range.start.line + 1)
symbol.comment = strings.clone(get_comment(comment), collection.allocator)