Testing scope importing

This commit is contained in:
2026-04-22 08:56:44 +02:00
parent 664e8aba74
commit 842383ba6e
6 changed files with 40 additions and 11 deletions
+5 -2
View File
@@ -17,8 +17,11 @@ pub enum Scope {
}
impl Scope {
pub fn from_top(top_level: &Vec<parser::ast::TopLevel>) -> Arc<Self> {
let tl = TopLevelSymbolScope::from(top_level);
pub fn from_top(
path: &std::path::PathBuf,
top_level: &Vec<parser::ast::TopLevel>,
) -> Arc<Self> {
let tl = TopLevelSymbolScope::from(path, top_level);
Arc::new(Self::TopLevel(TopLevelHirScope::from_tlss(&tl)))
}