@ -148,6 +148,13 @@ impl Ast {
}
pub fn list(self) -> Option<Vec<Ast>> {
match self {
Ast::List(Localised { item, .. }) => Some(item),
_ => None,
pub fn location(&self) -> &Location {
Ast::Symbol(Localised { location, .. }) => location,