mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Move parse::operator into module::operator
This commit is contained in:
parent
f47d96e1a4
commit
101dc80ae5
13 changed files with 18 additions and 19 deletions
|
@ -367,9 +367,11 @@ fn gen(
|
|||
jump_counter: arena.alloc(0),
|
||||
};
|
||||
|
||||
|
||||
// Add modules' decls to Procs
|
||||
for (_, mut decls) in decls_by_id.drain().chain(std::iter::once((loaded.module_id, home_decls))) {
|
||||
for (_, mut decls) in decls_by_id
|
||||
.drain()
|
||||
.chain(std::iter::once((loaded.module_id, home_decls)))
|
||||
{
|
||||
for decl in decls.drain(..) {
|
||||
use roc_can::def::Declaration::*;
|
||||
use roc_can::expr::Expr::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue