@@ -1,7 +1,7 @@
|
||||
use crate::{
|
||||
compile::Ctx,
|
||||
obj::Sym,
|
||||
syn::{ast, span::*},
|
||||
syn::span::*,
|
||||
};
|
||||
|
||||
pub type Body = Vec<Stmt>;
|
||||
|
||||
@@ -4,10 +4,7 @@ pub mod ir;
|
||||
pub mod name;
|
||||
pub mod visit;
|
||||
|
||||
use crate::{
|
||||
syn::ast::Stmt,
|
||||
compile::name::NameStack,
|
||||
};
|
||||
use crate::compile::name::NameStack;
|
||||
|
||||
// * Desugar
|
||||
// * Collect names as symbols
|
||||
|
||||
@@ -142,7 +142,7 @@ impl Visit for CollectNames<'_, '_> {
|
||||
self.visit_expr(&i.expr);
|
||||
self.visit_expr(&i.index);
|
||||
}
|
||||
Expr::Fun(f) => { /* no-op */ }
|
||||
Expr::Fun(_) => { /* no-op */ }
|
||||
Expr::Base(b) => self.visit_base_expr(b),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ impl Intern for BasicIntern {
|
||||
if let Some(obj_ref) = self.strs.get(s) {
|
||||
*obj_ref
|
||||
} else {
|
||||
todo!("TODO(obj) intern strings - need attrs somehow")
|
||||
todo!("TODO(obj) intern strings - need attrs for Str type somehow")
|
||||
//let s = Str::new(&mut ctx, s.to_string());
|
||||
//ctx.gc_mut().alloc(s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user