mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-24 05:05:00 +00:00
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:
parent
c182c5fadc
commit
9835ffe6ab
17 changed files with 969 additions and 819 deletions
|
@ -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(" -> ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue