Top level scope

This commit is contained in:
2026-04-15 08:40:28 +02:00
parent 6df7f672d0
commit 19629363b0
3 changed files with 32 additions and 10 deletions
+10 -8
View File
@@ -1,18 +1,20 @@
use std::collections::HashMap;
pub struct TypeSymbol {
export: bool,
name: String,
pub export: bool,
pub name: String,
}
pub struct FunctionSymbol {
export: bool,
name: String,
params: HashMap<String, TypeSymbol>,
pub export: bool,
pub name: String,
pub params: HashMap<String, TypeSymbol>,
}
pub struct StructSymbol {
export: bool,
name: String,
fields: HashMap<String, TypeSymbol>,
pub export: bool,
pub name: String,
pub fields: HashMap<String, TypeSymbol>,
pub methods: HashMap<String, FunctionSymbol>,
}