mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
store is_negative for all number literals in the parse ast
This commit is contained in:
parent
866fa14590
commit
182fd5201d
12 changed files with 142 additions and 46 deletions
|
@ -141,8 +141,14 @@ fn number_pattern_help<'a>() -> impl Parser<'a, Pattern<'a>, EPattern<'a>> {
|
|||
use crate::number_literal::NumLiteral::*;
|
||||
|
||||
match literal {
|
||||
Num(s) => Pattern::NumLiteral(s),
|
||||
Float(s) => Pattern::FloatLiteral(s),
|
||||
Num(s) => Pattern::NumLiteral {
|
||||
string: s,
|
||||
is_negative: false,
|
||||
},
|
||||
Float(s) => Pattern::FloatLiteral {
|
||||
string: s,
|
||||
is_negative: false,
|
||||
},
|
||||
NonBase10Int {
|
||||
string,
|
||||
base,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue