mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
infra for record patterns
This commit is contained in:
parent
70b5e18c21
commit
e007430584
3 changed files with 143 additions and 11 deletions
|
@ -386,7 +386,22 @@ pub enum EPattern<'a> {
|
|||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum PRecord<'a> {
|
||||
EPattern(&'a Type<'a>, Row, Col),
|
||||
End(Row, Col),
|
||||
Open(Row, Col),
|
||||
|
||||
Field(Row, Col),
|
||||
Colon(Row, Col),
|
||||
Optional(Row, Col),
|
||||
Type(&'a EPattern<'a>, Row, Col),
|
||||
// TODO remove
|
||||
Syntax(&'a SyntaxError<'a>, Row, Col),
|
||||
|
||||
Space(BadInputError, Row, Col),
|
||||
|
||||
IndentOpen(Row, Col),
|
||||
IndentColon(Row, Col),
|
||||
IndentOptional(Row, Col),
|
||||
IndentEnd(Row, Col),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue