mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +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 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…
Add table
Add a link
Reference in a new issue