mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Provide a LayoutCache
This commit is contained in:
parent
efb23dff44
commit
a1d15f42bb
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@ pub fn build(
|
||||||
let home = loaded.module_id;
|
let home = loaded.module_id;
|
||||||
let src_lines: Vec<&str> = src.split('\n').collect();
|
let src_lines: Vec<&str> = src.split('\n').collect();
|
||||||
let palette = DEFAULT_PALETTE;
|
let palette = DEFAULT_PALETTE;
|
||||||
|
let mut layout_cache = LayoutCache::default();
|
||||||
|
|
||||||
// Report parsing and canonicalization problems
|
// Report parsing and canonicalization problems
|
||||||
let alloc = RocDocAllocator::new(&src_lines, home, &loaded.interns);
|
let alloc = RocDocAllocator::new(&src_lines, home, &loaded.interns);
|
||||||
|
@ -193,6 +194,7 @@ pub fn build(
|
||||||
loc_args,
|
loc_args,
|
||||||
loc_body,
|
loc_body,
|
||||||
ret_var,
|
ret_var,
|
||||||
|
&mut layout_cache,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
body => {
|
body => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue