cl-ast: Add filename to File
- Better error reporting - Better pizza - Papa Cow's
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user