mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-12 14:56:18 +00:00
PNC for Patterns, stabilize formatting
This commit is contained in:
parent
bac165fd99
commit
3b0db07fa1
78 changed files with 789 additions and 332 deletions
|
@ -767,7 +767,7 @@ impl IterTokens for Loc<Pattern<'_>> {
|
|||
Pattern::Identifier { .. } => onetoken(Token::Variable, region, arena),
|
||||
Pattern::Tag(_) => onetoken(Token::Tag, region, arena),
|
||||
Pattern::OpaqueRef(_) => onetoken(Token::Type, region, arena),
|
||||
Pattern::Apply(p1, p2) => (p1.iter_tokens(arena).into_iter())
|
||||
Pattern::Apply(p1, p2, _) => (p1.iter_tokens(arena).into_iter())
|
||||
.chain(p2.iter_tokens(arena))
|
||||
.collect_in(arena),
|
||||
Pattern::RecordDestructure(ps) => ps.iter_tokens(arena),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue