mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-20 03:50:15 +00:00
Create to_exposed_symbol_string helper function for all backends
This commit is contained in:
parent
b99d7dba67
commit
0fef1e1576
6 changed files with 39 additions and 16 deletions
|
@ -330,7 +330,9 @@ fn build_proc_symbol<'a, B: Backend<'a>>(
|
|||
let base_name = backend.symbol_to_string(sym, layout_id);
|
||||
|
||||
let fn_name = if backend.env().exposed_to_host.contains(&sym) {
|
||||
format!("roc_{}_exposed", base_name)
|
||||
layout_ids
|
||||
.get_toplevel(sym, &layout)
|
||||
.to_exposed_symbol_string(sym, backend.interns())
|
||||
} else {
|
||||
base_name
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue