aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-30 03:46:53 -0500
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-11-30 03:46:53 -0500
commit2ed6299c85a7ba42185edcdb23987fe75747062e (patch)
treed3be06cbc82983a26c22841f829134d53e3970e9 /src
parent4e59e6d6e90bedc1aec9711a7b04b415faf19b8d (diff)
Propagate docs and comments for aliases defined in other packages
Diffstat (limited to 'src')
-rw-r--r--src/server/analysis.odin6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin
index 80370d9..a6f3a64 100644
--- a/src/server/analysis.odin
+++ b/src/server/analysis.odin
@@ -2658,6 +2658,12 @@ resolve_unresolved_symbol :: proc(ast_context: ^AstContext, symbol: ^Symbol) ->
symbol.value = ret.value
symbol.pkg = ret.pkg
symbol.flags |= ret.flags
+ if symbol.doc == "" {
+ symbol.doc = ret.doc
+ }
+ if symbol.comment == "" {
+ symbol.comment = ret.comment
+ }
} else {
return false
}