mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Revert "store is_negative for all number literals in the parse ast"
This reverts commit 182fd5201d
.
This commit is contained in:
parent
4b903e5531
commit
214112d751
12 changed files with 46 additions and 142 deletions
|
@ -101,10 +101,10 @@ pub fn desugar_def<'a>(arena: &'a Bump, def: &'a Def<'a>) -> Def<'a> {
|
|||
/// then replace the BinOp nodes with Apply nodes. Also drop SpaceBefore and SpaceAfter nodes.
|
||||
pub fn desugar_expr<'a>(arena: &'a Bump, loc_expr: &'a Located<Expr<'a>>) -> &'a Located<Expr<'a>> {
|
||||
match &loc_expr.value {
|
||||
Float { .. }
|
||||
| Nested(Float { .. })
|
||||
| Num { .. }
|
||||
| Nested(Num { .. })
|
||||
Float(_)
|
||||
| Nested(Float(_))
|
||||
| Num(_)
|
||||
| Nested(Num(_))
|
||||
| NonBase10Int { .. }
|
||||
| Nested(NonBase10Int { .. })
|
||||
| Str(_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue