mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-23 12:45:04 +00:00
feat: incorporated with static function signature analysis (#688)
* feat: finished function signature analysis * dev: update snapshot * dev: broken snapshot
This commit is contained in:
parent
a3f100e7cb
commit
02bbdbf8d9
26 changed files with 429 additions and 270 deletions
|
@ -113,7 +113,7 @@ impl StatefulRequest for CompletionRequest {
|
|||
Some(DerefTarget::Normal(SyntaxKind::Str, cano_expr)) => {
|
||||
let parent = cano_expr.parent()?;
|
||||
if matches!(parent.kind(), SyntaxKind::Named | SyntaxKind::Args) {
|
||||
let ty_chk = ctx.type_check(source.clone());
|
||||
let ty_chk = ctx.type_check(&source);
|
||||
if let Some(ty_chk) = ty_chk {
|
||||
let ty = ty_chk.type_of_span(cano_expr.span());
|
||||
log::debug!("check string ty: {ty:?}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue