mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
WIP: fix REPL
This commit is contained in:
parent
b56236a3b5
commit
8ce843a8df
3 changed files with 26 additions and 29 deletions
|
@ -38,10 +38,7 @@ impl HIRBuilder {
|
|||
let ast = Reorderer::new()
|
||||
.reorder(ast)
|
||||
.map_err(|errs| self.convert(errs))?;
|
||||
let (hir, ctx) = self
|
||||
.checker
|
||||
.check(ast, mode)
|
||||
.map_err(|errs| self.convert(errs))?;
|
||||
let (hir, ctx) = self.checker.check(ast, mode)?;
|
||||
self.mod_cache.register(var_name, Some(hir), ctx);
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue