Progress on updating entire compiler for snake_case

This commit is contained in:
Sam Mohr 2025-01-05 03:48:03 -08:00
parent db6cc5a7b1
commit b56fbd38e1
No known key found for this signature in database
GPG key ID: EA41D161A3C1BC99
297 changed files with 8416 additions and 8544 deletions

View file

@ -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);

View file

@ -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>(

View file

@ -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) {