Introduce NodeId for AST and synthetic slices
This commit is contained in:
@@ -48,7 +48,7 @@ impl<T: Clone + Debug + PartialEq> EnvironmentStack<T> {
|
||||
}
|
||||
}
|
||||
runtime_error(
|
||||
SourceSlice::default(), // todo change this to the actual source slice
|
||||
SourceSlice::synthetic(), // todo change this to the actual source slice
|
||||
format!("Undefined variable '{}'", name),
|
||||
)
|
||||
}
|
||||
@@ -75,7 +75,7 @@ impl<T: Clone + Debug + PartialEq> EnvironmentStack<T> {
|
||||
}
|
||||
}
|
||||
runtime_error(
|
||||
SourceSlice::default(), // todo change this to the actual source slice
|
||||
SourceSlice::synthetic(), // todo change this to the actual source slice
|
||||
format!("Undefined variable '{}'", name),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user