This commit is contained in:
2026-04-15 10:51:55 +02:00
parent deeb9350b4
commit 4907533441
4 changed files with 156 additions and 6 deletions
+3 -3
View File
@@ -76,14 +76,14 @@ impl StructSymbol {
}
#[derive(Clone, Debug)]
pub struct TopLevelScope {
pub struct TopLevelSymbolScope {
pub structs: HashMap<String, StructSymbol>,
pub functions: HashMap<String, FunctionSymbol>,
}
impl TopLevelScope {
impl TopLevelSymbolScope {
pub fn from(top_level: &Vec<TopLevel>) -> Self {
let mut scope = TopLevelScope {
let mut scope = TopLevelSymbolScope {
structs: HashMap::new(),
functions: HashMap::new(),
};