feat: incorporated with static function signature analysis (#688)

* feat: finished function signature analysis

* dev: update snapshot

* dev: broken snapshot
This commit is contained in:
Myriad-Dreamin 2024-10-16 15:53:43 +08:00 committed by GitHub
parent a3f100e7cb
commit 02bbdbf8d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 429 additions and 270 deletions

View file

@ -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:?}");