rename operator.rs to desugar.rs

This commit is contained in:
Luke Boswell 2024-03-17 15:57:27 +11:00
parent 14ba398b5d
commit 3b2e9e36b8
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
5 changed files with 6 additions and 6 deletions

View file

@ -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;

View file

@ -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();

View file

@ -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,

View file

@ -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,