mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
error message for when
This commit is contained in:
parent
3a35bcb3cb
commit
9edbf322c0
5 changed files with 454 additions and 80 deletions
|
@ -387,19 +387,20 @@ pub enum EExpr<'a> {
|
|||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum When<'a> {
|
||||
Space(BadInputError, Row, Col),
|
||||
When(Row, Col),
|
||||
Is(Row, Col),
|
||||
Pattern(EPattern<'a>, Row, Col),
|
||||
Arrow(Row, Col),
|
||||
Bar(Row, Col),
|
||||
IfToken(Row, Col),
|
||||
// TODO make EExpr
|
||||
// TODO make EEXpr
|
||||
IfGuard(&'a SyntaxError<'a>, Row, Col),
|
||||
Condition(&'a EExpr<'a>, Row, Col),
|
||||
Branch(&'a EExpr<'a>, Row, Col),
|
||||
Syntax(&'a SyntaxError<'a>, Row, Col),
|
||||
|
||||
IndentOf(Row, Col),
|
||||
IndentExpr(Row, Col),
|
||||
IndentIs(Row, Col),
|
||||
IndentCondition(Row, Col),
|
||||
IndentPattern(Row, Col),
|
||||
IndentArrow(Row, Col),
|
||||
IndentBranch(Row, Col),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue