mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-19 11:30:15 +00:00
Parse "as" aliases into tag/args rather than arbitrary annotations
This commit is contained in:
parent
4ddb8e10fb
commit
2cd5bf8c03
8 changed files with 276 additions and 253 deletions
|
@ -482,6 +482,7 @@ pub enum EType<'a> {
|
|||
TTagUnion(ETypeTagUnion<'a>, Position),
|
||||
TInParens(ETypeInParens<'a>, Position),
|
||||
TApply(ETypeApply, Position),
|
||||
TInlineAlias(ETypeInlineAlias, Position),
|
||||
TBadTypeVariable(Position),
|
||||
TWildcard(Position),
|
||||
TInferred(Position),
|
||||
|
@ -553,6 +554,13 @@ pub enum ETypeApply {
|
|||
StartIsNumber(Position),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum ETypeInlineAlias {
|
||||
NotAnAlias(Position),
|
||||
Qualified(Position),
|
||||
ArgumentNotLowercase(Position),
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ParseProblem<'a, T> {
|
||||
pub pos: Position,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue