mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Hide RocDec implemntation details.
This commit is contained in:
parent
92ace8ff67
commit
ba6b225761
8 changed files with 26 additions and 16 deletions
|
@ -135,7 +135,7 @@ impl<'a> Hash for Test<'a> {
|
|||
IsDecimal(v) => {
|
||||
// TODO: Is this okay?
|
||||
state.write_u8(6);
|
||||
v.0.hash(state);
|
||||
v.hash(state);
|
||||
}
|
||||
IsU128(v) => {
|
||||
state.write_u8(7);
|
||||
|
@ -906,7 +906,7 @@ fn to_relevant_branch_help<'a>(
|
|||
},
|
||||
|
||||
DecimalLiteral(dec) => match test {
|
||||
IsDecimal(test_dec) if dec.0 == test_dec.0 => {
|
||||
IsDecimal(test_dec) if dec.eq(test_dec) => {
|
||||
start.extend(end);
|
||||
Some(Branch {
|
||||
goal: branch.goal,
|
||||
|
@ -1396,7 +1396,7 @@ fn test_to_equality<'a>(
|
|||
}
|
||||
|
||||
Test::IsDecimal(test_dec) => {
|
||||
let lhs = Expr::Literal(Literal::Int(test_dec.0));
|
||||
let lhs = Expr::Literal(Literal::Decimal(test_dec));
|
||||
let lhs_symbol = env.unique_symbol();
|
||||
stores.push((lhs_symbol, *cond_layout, lhs));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue