mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 00:09:33 +03:00
Provide a LayoutCache
This commit is contained in:
parent
efb23dff44
commit
a1d15f42bb
@ -38,6 +38,7 @@ pub fn build(
|
||||
let home = loaded.module_id;
|
||||
let src_lines: Vec<&str> = src.split('\n').collect();
|
||||
let palette = DEFAULT_PALETTE;
|
||||
let mut layout_cache = LayoutCache::default();
|
||||
|
||||
// Report parsing and canonicalization problems
|
||||
let alloc = RocDocAllocator::new(&src_lines, home, &loaded.interns);
|
||||
@ -193,6 +194,7 @@ pub fn build(
|
||||
loc_args,
|
||||
loc_body,
|
||||
ret_var,
|
||||
&mut layout_cache,
|
||||
);
|
||||
}
|
||||
body => {
|
||||
|
Loading…
Reference in New Issue
Block a user