temp commit

This commit is contained in:
2025-07-12 00:46:10 +02:00
parent 1868f1a506
commit fe89188c4b
60 changed files with 1536 additions and 709 deletions

View File

@@ -72,7 +72,6 @@ pub struct Member {
pub enum MemberKind {
Const(Expression),
Module(Module),
Import(TStrv),
Lazy(TreeId),
}
@@ -105,10 +104,10 @@ pub enum LsModuleError {
TreeUnavailable,
}
/// Information about a module sent from the host to an extension. By necessity,
/// members and imports are non-overlapping.
#[derive(Clone, Debug, Coding)]
pub struct ModuleInfo {
/// If the name isn't a canonical name, returns the true name.
pub canonical: Option<TStrv>,
/// List the names defined in this module
pub members: HashMap<TStr, MemberInfo>,
}
@@ -116,9 +115,7 @@ pub struct ModuleInfo {
#[derive(Clone, Copy, Debug, Coding)]
pub struct MemberInfo {
/// true if the name is exported
pub exported: bool,
/// If it's imported, you can find the canonical name here
pub canonical: Option<TStrv>,
pub public: bool,
/// Whether the tree item is a constant value or a module
pub kind: MemberInfoKind,
}