mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
rename operator.rs to desugar.rs
This commit is contained in:
parent
14ba398b5d
commit
3b2e9e36b8
5 changed files with 6 additions and 6 deletions
|
@ -20,7 +20,7 @@ pub mod expected;
|
|||
pub mod expr;
|
||||
pub mod module;
|
||||
pub mod num;
|
||||
pub mod operator;
|
||||
pub mod desugar;
|
||||
pub mod pattern;
|
||||
pub mod procedure;
|
||||
pub mod scope;
|
||||
|
|
|
@ -312,7 +312,7 @@ pub fn canonicalize_module_defs<'a>(
|
|||
// visited a BinOp node we'd recursively try to apply this to each of its nested
|
||||
// operators, and then again on *their* nested operators, ultimately applying the
|
||||
// rules multiple times unnecessarily.
|
||||
crate::operator::desugar_defs(arena, loc_defs, src, &mut None, module_path);
|
||||
crate::desugar::desugar_defs(arena, loc_defs, src, &mut None, module_path);
|
||||
|
||||
let mut rigid_variables = RigidVariables::default();
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ use self::bumpalo::Bump;
|
|||
use roc_can::env::Env;
|
||||
use roc_can::expr::Output;
|
||||
use roc_can::expr::{canonicalize_expr, Expr};
|
||||
use roc_can::operator;
|
||||
use roc_can::desugar;
|
||||
use roc_can::scope::Scope;
|
||||
use roc_collections::all::MutMap;
|
||||
use roc_module::symbol::{IdentIds, Interns, ModuleId, ModuleIds, Symbol};
|
||||
|
@ -52,7 +52,7 @@ pub fn can_expr_with(arena: &Bump, home: ModuleId, expr_str: &str) -> CanExprOut
|
|||
// visited a BinOp node we'd recursively try to apply this to each of its nested
|
||||
// operators, and then again on *their* nested operators, ultimately applying the
|
||||
// rules multiple times unnecessarily.
|
||||
let loc_expr = operator::desugar_expr(
|
||||
let loc_expr = desugar::desugar_expr(
|
||||
arena,
|
||||
&loc_expr,
|
||||
expr_str,
|
||||
|
|
|
@ -6,7 +6,7 @@ use roc_can::constraint::{Constraint, Constraints};
|
|||
use roc_can::env::Env;
|
||||
use roc_can::expected::Expected;
|
||||
use roc_can::expr::{canonicalize_expr, Expr, Output, PendingDerives};
|
||||
use roc_can::operator;
|
||||
use roc_can::desugar;
|
||||
use roc_can::scope::Scope;
|
||||
use roc_collections::all::{ImMap, MutMap, SendSet};
|
||||
use roc_constrain::expr::constrain_expr;
|
||||
|
@ -166,7 +166,7 @@ pub fn can_expr_with<'a>(
|
|||
// visited a BinOp node we'd recursively try to apply this to each of its nested
|
||||
// operators, and then again on *their* nested operators, ultimately applying the
|
||||
// rules multiple times unnecessarily.
|
||||
let loc_expr = operator::desugar_expr(
|
||||
let loc_expr = desugar::desugar_expr(
|
||||
arena,
|
||||
&loc_expr,
|
||||
expr_str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue