mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Progress on updating entire compiler for snake_case
This commit is contained in:
parent
db6cc5a7b1
commit
b56fbd38e1
297 changed files with 8416 additions and 8544 deletions
|
@ -5799,8 +5799,8 @@ fn expose_alias_to_host<'a>(
|
|||
RawFunctionLayout::Function(arguments, closure, result) => {
|
||||
// define closure size and return value size, e.g.
|
||||
//
|
||||
// * roc__mainForHost_1_Update_size() -> i64
|
||||
// * roc__mainForHost_1_Update_result_size() -> i64
|
||||
// * roc__main_for_host_1_Update_size() -> i64
|
||||
// * roc__main_for_host_1_Update_result_size() -> i64
|
||||
|
||||
let it = hels.proc_layout.arguments.iter().copied();
|
||||
let bytes = roc_alias_analysis::func_name_bytes_help(
|
||||
|
@ -5847,7 +5847,7 @@ fn expose_alias_to_host<'a>(
|
|||
RawFunctionLayout::ZeroArgumentThunk(result) => {
|
||||
// Define only the return value size, since this is a thunk
|
||||
//
|
||||
// * roc__mainForHost_1_Update_result_size() -> i64
|
||||
// * roc__main_for_host_1_Update_result_size() -> i64
|
||||
|
||||
let result_type =
|
||||
basic_type_from_layout(env, layout_interner, layout_interner.get_repr(result));
|
||||
|
@ -5894,7 +5894,7 @@ fn build_closure_caller<'a, 'ctx>(
|
|||
|
||||
// STEP 1: build function header
|
||||
|
||||
// e.g. `roc__mainForHost_0_caller` (def_name is `mainForHost_0`)
|
||||
// e.g. `roc__main_for_host_0_caller` (def_name is `main_for_host_0`)
|
||||
let function_name = format!("roc__{def_name}_caller");
|
||||
|
||||
let function_spec = FunctionSpec::cconv(env, CCReturn::Void, None, &argument_types);
|
||||
|
|
|
@ -28,7 +28,7 @@ pub(crate) fn decode_from_utf8_result<'a, 'ctx>(
|
|||
)
|
||||
}
|
||||
|
||||
/// Dec.toStr : Dec -> Str
|
||||
/// Dec.to_str : Dec -> Str
|
||||
|
||||
/// Str.equal : Str, Str -> Bool
|
||||
pub(crate) fn str_equal<'ctx>(
|
||||
|
|
|
@ -871,7 +871,7 @@ pub(crate) fn run_low_level<'a, 'ctx>(
|
|||
}
|
||||
}
|
||||
NumToStr => {
|
||||
// Num.toStr : Num a -> Str
|
||||
// Num.to_str : Num a -> Str
|
||||
arguments_with_layouts!((num, num_layout));
|
||||
|
||||
match layout_interner.get_repr(num_layout) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue