mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +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
|
@ -141,14 +141,8 @@ fn number_pattern_help<'a>() -> impl Parser<'a, Pattern<'a>, EPattern<'a>> {
|
|||
use crate::number_literal::NumLiteral::*;
|
||||
|
||||
match literal {
|
||||
Num(s) => Pattern::NumLiteral {
|
||||
string: s,
|
||||
is_negative: false,
|
||||
},
|
||||
Float(s) => Pattern::FloatLiteral {
|
||||
string: s,
|
||||
is_negative: false,
|
||||
},
|
||||
Num(s) => Pattern::NumLiteral(s),
|
||||
Float(s) => Pattern::FloatLiteral(s),
|
||||
NonBase10Int {
|
||||
string,
|
||||
base,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue