mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Have Stmt::new accept LayoutCache
This commit is contained in:
parent
8751e4bd00
commit
3f0b08a992
4 changed files with 21 additions and 13 deletions
|
@ -625,11 +625,11 @@ impl<'a> Stmt<'a> {
|
|||
env: &mut Env<'a, '_>,
|
||||
can_expr: roc_can::expr::Expr,
|
||||
procs: &mut Procs<'a>,
|
||||
layout_cache: &mut LayoutCache<'a>,
|
||||
) -> Self {
|
||||
let mut layout_cache = LayoutCache::default();
|
||||
|
||||
from_can(env, can_expr, procs, &mut layout_cache)
|
||||
from_can(env, can_expr, procs, layout_cache)
|
||||
}
|
||||
|
||||
pub fn to_doc<'b, D, A>(&'b self, alloc: &'b D) -> DocBuilder<'b, D, A>
|
||||
where
|
||||
D: DocAllocator<'b, A>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue