dev: collect func.with type information for signature help (#759)

* feat: static analysis on `func.with` bindings

* test: update snapshot
This commit is contained in:
Myriad-Dreamin 2024-11-02 14:52:25 +08:00 committed by GitHub
parent 67367b03bf
commit f1f77065d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 163 additions and 230 deletions

View file

@ -11,11 +11,12 @@ use typst::syntax::package::PackageSpec;
use typst::syntax::FileId;
use crate::docs::file_id_repr;
use crate::package::{get_manifest_id, PackageInfo};
use crate::syntax::{Decl, DefKind, Expr, ExprInfo};
use crate::ty::Interned;
use crate::LocalContext;
use super::{get_manifest_id, DefDocs, PackageInfo};
use super::DefDocs;
/// Get documentation of definitions in a package.
pub fn package_module_docs(ctx: &mut LocalContext, pkg: &PackageInfo) -> StrResult<PackageDefInfo> {