mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +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
|
@ -24,8 +24,8 @@ impl<'a> Formattable<'a> for Expr<'a> {
|
|||
}
|
||||
|
||||
// These expressions never have newlines
|
||||
Float { .. }
|
||||
| Num { .. }
|
||||
Float(_)
|
||||
| Num(_)
|
||||
| NonBase10Int { .. }
|
||||
| Access(_, _)
|
||||
| AccessorFunction(_)
|
||||
|
@ -218,7 +218,7 @@ impl<'a> Formattable<'a> for Expr<'a> {
|
|||
buf.push(')');
|
||||
}
|
||||
}
|
||||
Num { string, .. } | Float { string, .. } | GlobalTag(string) | PrivateTag(string) => {
|
||||
Num(string) | Float(string) | GlobalTag(string) | PrivateTag(string) => {
|
||||
buf.push_str(string)
|
||||
}
|
||||
NonBase10Int {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue