docs: add documents to type system (#295)

* docs: simplify a bit

* docs: add documents to type system code

* docs: update

* refactor: rename
This commit is contained in:
Myriad-Dreamin 2024-05-16 11:52:41 +08:00 committed by GitHub
parent c182c5fadc
commit 9835ffe6ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 969 additions and 819 deletions

View file

@ -143,7 +143,7 @@ impl SemanticRequest for SignatureHelpRequest {
label.push(')');
let ret = type_sig
.as_ref()
.and_then(|sig| sig.ret.as_ref())
.and_then(|sig| sig.body.as_ref())
.or_else(|| sig.primary().ret_ty.as_ref());
if let Some(ret_ty) = ret {
label.push_str(" -> ");