mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Store specialized lookup variables in expects
This commit is contained in:
parent
9d5f2aa138
commit
16209ef866
6 changed files with 74 additions and 14 deletions
|
@ -195,6 +195,7 @@ fn function_s<'a, 'i>(
|
|||
condition,
|
||||
region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder,
|
||||
} => {
|
||||
let continuation: &Stmt = remainder;
|
||||
|
@ -207,6 +208,7 @@ fn function_s<'a, 'i>(
|
|||
condition: *condition,
|
||||
region: *region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder: new_continuation,
|
||||
};
|
||||
|
||||
|
@ -218,6 +220,7 @@ fn function_s<'a, 'i>(
|
|||
condition,
|
||||
region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder,
|
||||
} => {
|
||||
let continuation: &Stmt = remainder;
|
||||
|
@ -230,6 +233,7 @@ fn function_s<'a, 'i>(
|
|||
condition: *condition,
|
||||
region: *region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder: new_continuation,
|
||||
};
|
||||
|
||||
|
@ -438,6 +442,7 @@ fn function_d_main<'a, 'i>(
|
|||
condition,
|
||||
region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder,
|
||||
} => {
|
||||
let (b, found) = function_d_main(env, x, c, remainder);
|
||||
|
@ -447,6 +452,7 @@ fn function_d_main<'a, 'i>(
|
|||
condition: *condition,
|
||||
region: *region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder: b,
|
||||
};
|
||||
|
||||
|
@ -458,6 +464,7 @@ fn function_d_main<'a, 'i>(
|
|||
condition: *condition,
|
||||
region: *region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder: b,
|
||||
};
|
||||
|
||||
|
@ -468,6 +475,7 @@ fn function_d_main<'a, 'i>(
|
|||
condition,
|
||||
region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder,
|
||||
} => {
|
||||
let (b, found) = function_d_main(env, x, c, remainder);
|
||||
|
@ -477,6 +485,7 @@ fn function_d_main<'a, 'i>(
|
|||
condition: *condition,
|
||||
region: *region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder: b,
|
||||
};
|
||||
|
||||
|
@ -488,6 +497,7 @@ fn function_d_main<'a, 'i>(
|
|||
condition: *condition,
|
||||
region: *region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder: b,
|
||||
};
|
||||
|
||||
|
@ -650,6 +660,7 @@ fn function_r<'a, 'i>(env: &mut Env<'a, 'i>, stmt: &'a Stmt<'a>) -> &'a Stmt<'a>
|
|||
condition,
|
||||
region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder,
|
||||
} => {
|
||||
let b = function_r(env, remainder);
|
||||
|
@ -658,6 +669,7 @@ fn function_r<'a, 'i>(env: &mut Env<'a, 'i>, stmt: &'a Stmt<'a>) -> &'a Stmt<'a>
|
|||
condition: *condition,
|
||||
region: *region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder: b,
|
||||
};
|
||||
|
||||
|
@ -668,6 +680,7 @@ fn function_r<'a, 'i>(env: &mut Env<'a, 'i>, stmt: &'a Stmt<'a>) -> &'a Stmt<'a>
|
|||
condition,
|
||||
region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder,
|
||||
} => {
|
||||
let b = function_r(env, remainder);
|
||||
|
@ -676,6 +689,7 @@ fn function_r<'a, 'i>(env: &mut Env<'a, 'i>, stmt: &'a Stmt<'a>) -> &'a Stmt<'a>
|
|||
condition: *condition,
|
||||
region: *region,
|
||||
lookups,
|
||||
variables,
|
||||
remainder: b,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue