@@ -18,7 +18,7 @@ impl<'c, 't> TranslateAst<'c, 't> {
|
||||
TranslateAst { ctx, text }
|
||||
}
|
||||
|
||||
pub fn translate(&mut self, ast: &Vec<Stmt>) -> Result<ir::Body> {
|
||||
pub fn translate(&mut self, _ast: &Vec<Stmt>) -> Result<ir::Body> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ impl<'c, 't> TranslateAst<'c, 't> {
|
||||
kind: BaseExprKind::Ident,
|
||||
..
|
||||
}) => {
|
||||
let name = expr.text_at(self.text);
|
||||
let _name = expr.text_at(self.text);
|
||||
//let name_id = self.ctx.
|
||||
todo!()
|
||||
//Ok(ir::Lhs::Name(
|
||||
@@ -42,7 +42,7 @@ impl<'c, 't> TranslateAst<'c, 't> {
|
||||
impl Visit<Stmt> for TranslateAst<'_, '_> {
|
||||
type Out = Result<ir::Stmt>;
|
||||
|
||||
fn visit(&mut self, stmt: &Stmt) -> Self::Out {
|
||||
fn visit(&mut self, _stmt: &Stmt) -> Self::Out {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
@@ -50,7 +50,7 @@ impl Visit<Stmt> for TranslateAst<'_, '_> {
|
||||
impl Visit<AssignStmt> for TranslateAst<'_, '_> {
|
||||
type Out = Result<ir::Stmt>;
|
||||
|
||||
fn visit(&mut self, stmt: &AssignStmt) -> Self::Out {
|
||||
fn visit(&mut self, _stmt: &AssignStmt) -> Self::Out {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,7 @@ impl Visit<AssignStmt> for TranslateAst<'_, '_> {
|
||||
impl Visit<Expr> for TranslateAst<'_, '_> {
|
||||
type Out = Result<ir::Expr>;
|
||||
|
||||
fn visit(&mut self, expr: &Expr) -> Self::Out {
|
||||
fn visit(&mut self, _expr: &Expr) -> Self::Out {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user