use crate::ast::*; pub fn resolve_scopes(ast: &mut AST) -> Result<(), String> { println!("Resolving scopes - nothing so far!"); for statement in ast.0.iter_mut() { match statement.mut_node() { Statement::Declaration(ref mut decl) => resolve_decl(decl), Statement::ExpressionStatement(ref mut expr) => resolve_expr(expr), }?; } Ok(()) } fn resolve_decl(decl: &mut Declaration) -> Result<(), String> { Ok(()) } fn resolve_expr(expr: &mut Meta) -> Result<(), String> { Ok(()) }