mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Rename symbol and module lookup struts
This commit is contained in:
parent
33cbaa5cd8
commit
63e722f61d
5 changed files with 53 additions and 34 deletions
|
@ -10,7 +10,7 @@ use crate::num::{
|
|||
use crate::params_in_abilities_unimplemented;
|
||||
use crate::pattern::{canonicalize_pattern, BindingsFromPattern, Pattern, PermitShadows};
|
||||
use crate::procedure::{QualifiedReference, References};
|
||||
use crate::scope::{LookedupSymbol, Scope};
|
||||
use crate::scope::{Scope, SymbolLookup};
|
||||
use crate::traverse::{walk_expr, Visitor};
|
||||
use roc_collections::soa::Index;
|
||||
use roc_collections::{SendMap, VecMap, VecSet};
|
||||
|
@ -1934,7 +1934,13 @@ fn canonicalize_var_lookup(
|
|||
(can_expr, output)
|
||||
}
|
||||
|
||||
fn lookup_to_expr(LookedupSymbol { symbol, params }: LookedupSymbol, var: Variable) -> Expr {
|
||||
fn lookup_to_expr(
|
||||
SymbolLookup {
|
||||
symbol,
|
||||
module_params: params,
|
||||
}: SymbolLookup,
|
||||
var: Variable,
|
||||
) -> Expr {
|
||||
if let Some(params) = params {
|
||||
Expr::ParamsVar {
|
||||
symbol,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue