mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
parse and format pattern as
This commit is contained in:
parent
ea53a50447
commit
e9196f3c0b
13 changed files with 189 additions and 7 deletions
|
@ -766,6 +766,11 @@ impl<'a> RemoveSpaces<'a> for Pattern<'a> {
|
|||
Pattern::OptionalField(a, b) => {
|
||||
Pattern::OptionalField(a, arena.alloc(b.remove_spaces(arena)))
|
||||
}
|
||||
Pattern::As(pattern, spaces, identifier) => Pattern::As(
|
||||
arena.alloc(pattern.remove_spaces(arena)),
|
||||
spaces,
|
||||
identifier,
|
||||
),
|
||||
Pattern::NumLiteral(a) => Pattern::NumLiteral(a),
|
||||
Pattern::NonBase10Literal {
|
||||
string,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue