diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-27 21:07:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-27 21:07:42 -0400 |
| commit | 62cae61b822416979ff25b3672feb3679c93eebc (patch) | |
| tree | f75b86e60722afc3705c5278e228130e0c1205b4 /src/server | |
| parent | b198e433f3706caecd710cfb926d8c9aef0dd0f6 (diff) | |
| parent | bc57cc161d1fee05dae837e4334985dd283a03ba (diff) | |
Merge pull request #791 from BradLewis/fix/re-export-docs-if-not-overridden
Only override docs for re-exported items if there is new documentation on the when doing the export
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/analysis.odin | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index 4290fbd..8143bbf 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -1835,8 +1835,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 { |