mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-19 11:30:15 +00:00
Reporting for abilities parsing
This commit is contained in:
parent
d7abc3897b
commit
d92a5b9424
4 changed files with 205 additions and 8 deletions
|
@ -479,7 +479,6 @@ pub enum EAbility<'a> {
|
|||
Space(BadInputError, Position),
|
||||
Type(EType<'a>, Position),
|
||||
|
||||
IndentDemand(Position),
|
||||
DemandAlignment(i32, Position),
|
||||
DemandName(Position),
|
||||
DemandColon(Position),
|
||||
|
@ -1421,7 +1420,12 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
pub fn word3<'a, ToError, E>(word_1: u8, word_2: u8, word_3: u8, to_error: ToError) -> impl Parser<'a, (), E>
|
||||
pub fn word3<'a, ToError, E>(
|
||||
word_1: u8,
|
||||
word_2: u8,
|
||||
word_3: u8,
|
||||
to_error: ToError,
|
||||
) -> impl Parser<'a, (), E>
|
||||
where
|
||||
ToError: Fn(Position) -> E,
|
||||
E: 'a,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue