mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
add example with arguments
This commit is contained in:
parent
3ff17aa0ea
commit
38566a2b9f
18 changed files with 286 additions and 129 deletions
|
@ -380,11 +380,8 @@ pub fn load_types(
|
|||
|
||||
// Get the variables for all the exposed_to_host symbols
|
||||
let variables = (0..decls.len()).filter_map(|index| {
|
||||
if exposed_to_host.contains_key(&decls.symbols[index].value) {
|
||||
Some(decls.variables[index])
|
||||
} else {
|
||||
None
|
||||
}
|
||||
let symbol = decls.symbols[index].value;
|
||||
exposed_to_host.get(&symbol).copied()
|
||||
});
|
||||
|
||||
let operating_system = target_info.operating_system;
|
||||
|
@ -456,7 +453,6 @@ pub fn load_types(
|
|||
let types = Types::new_with_entry_points(
|
||||
arena,
|
||||
subs,
|
||||
variables.clone(),
|
||||
arena.alloc(interns),
|
||||
glue_procs_by_layout,
|
||||
layout_cache,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue