mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
fixed scope lookup bug
This commit is contained in:
parent
0a77b3f334
commit
c7c421b2f5
19 changed files with 212 additions and 185 deletions
|
@ -2,15 +2,18 @@ use bumpalo::Bump;
|
|||
use roc_module::symbol::Interns;
|
||||
use roc_region::all::Region;
|
||||
|
||||
use crate::{ast_error::ASTResult, lang::{
|
||||
core::{
|
||||
ast::AST,
|
||||
def::{def2::DefId, def_to_def2::str_to_def2},
|
||||
expr::expr2::Expr2,
|
||||
use crate::{
|
||||
ast_error::ASTResult,
|
||||
lang::{
|
||||
core::{
|
||||
ast::AST,
|
||||
def::{def2::DefId, def_to_def2::str_to_def2},
|
||||
expr::expr2::Expr2,
|
||||
},
|
||||
env::Env,
|
||||
scope::Scope,
|
||||
},
|
||||
env::Env,
|
||||
scope::Scope,
|
||||
}};
|
||||
};
|
||||
|
||||
use super::parse_header;
|
||||
|
||||
|
@ -28,7 +31,7 @@ pub fn parse_from_string<'a>(
|
|||
let tail_str = &code_str[blank_line_indx..];
|
||||
|
||||
let mut scope = Scope::new(env.home, env.pool, env.var_store);
|
||||
scope.fill_scope(&env, interns)?;
|
||||
scope.fill_scope(env, &mut interns.all_ident_ids)?;
|
||||
|
||||
let region = Region::new(0, 0, 0, 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue