From bc57cc161d1fee05dae837e4334985dd283a03ba Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sun, 27 Jul 2025 10:55:18 -0400 Subject: Only override docs for re-exported items if there is new documentation on the when doing the export --- src/server/analysis.odin | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/analysis.odin b/src/server/analysis.odin index 6cbc14d..2c14e78 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -1855,8 +1855,13 @@ internal_resolve_type_identifier :: proc(ast_context: ^AstContext, node: ast.Ide return_symbol.type = .Variable } - return_symbol.doc = get_doc(global.docs, ast_context.allocator) - return_symbol.comment = get_comment(global.comment) + if global.docs != nil { + return_symbol.doc = get_doc(global.docs, ast_context.allocator) + } + + if global.comment != nil { + return_symbol.comment = get_comment(global.comment) + } return return_symbol, ok } else { -- cgit v1.2.3