mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
make the repl app mutable (for expect repl)
This commit is contained in:
parent
dfbad3c322
commit
6c0217c6f6
5 changed files with 58 additions and 49 deletions
|
@ -43,7 +43,7 @@ pub enum ToAstProblem {
|
|||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn jit_to_ast<'a, A: ReplApp<'a>>(
|
||||
arena: &'a Bump,
|
||||
app: &'a A,
|
||||
app: &mut A,
|
||||
main_fn_name: &str,
|
||||
layout: ProcLayout<'a>,
|
||||
content: &'a Content,
|
||||
|
@ -94,6 +94,7 @@ enum NewtypeKind<'a> {
|
|||
/// Returns (new type containers, optional alias content, real content).
|
||||
fn unroll_newtypes_and_aliases<'a>(
|
||||
env: &Env<'a, 'a>,
|
||||
|
||||
mut content: &'a Content,
|
||||
) -> (Vec<'a, NewtypeKind<'a>>, Option<&'a Content>, &'a Content) {
|
||||
let mut newtype_containers = Vec::with_capacity_in(1, env.arena);
|
||||
|
@ -282,7 +283,7 @@ const OPAQUE_FUNCTION: Expr = Expr::Var {
|
|||
|
||||
fn jit_to_ast_help<'a, A: ReplApp<'a>>(
|
||||
env: &Env<'a, 'a>,
|
||||
app: &'a A,
|
||||
app: &mut A,
|
||||
main_fn_name: &str,
|
||||
layout: &Layout<'a>,
|
||||
content: &'a Content,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue