cl-ast: Add filename to File

- Better error reporting
- Better pizza
- Papa Cow's
This commit is contained in:
2025-03-14 04:11:22 -05:00
parent cdb9ec49fe
commit a4176c710e
13 changed files with 80 additions and 49 deletions

View File

@@ -13,8 +13,8 @@ pub trait WeightOf {
impl WeightOf for File {
fn weight_of(&self) -> usize {
let Self { items } = self;
items.weight_of()
let Self { name, items } = self;
name.weight_of() + items.weight_of()
}
}