Resolver - Apply resolution to methods
This commit is contained in:
parent
16bf06c7a1
commit
392aaa630d
1 changed files with 6 additions and 1 deletions
|
@ -265,7 +265,12 @@ impl VarResolver for StmtNode {
|
|||
StmtNode::ClassDecl(decl) => {
|
||||
rs.declare(&decl.name, SymKind::Class)?;
|
||||
rs.define(&decl.name);
|
||||
Ok(())
|
||||
decl.methods
|
||||
.iter()
|
||||
.map(|method| {
|
||||
rs.with_scope(|rs| resolve_function(rs, &method.params, &method.body))
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
StmtNode::If {
|
||||
|
|
Loading…
Reference in a new issue