mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Combine ! and ? into single TrySuffix AST node
This commit is contained in:
parent
cc5bf3f164
commit
3bc5c1dc12
42 changed files with 859 additions and 162 deletions
|
@ -1,3 +1,4 @@
|
|||
use crate::ast::TryTarget;
|
||||
use crate::parser::Progress::{self, *};
|
||||
use crate::parser::{BadInputError, EExpr, ParseResult, Parser};
|
||||
use crate::state::State;
|
||||
|
@ -377,7 +378,7 @@ impl<'a> Accessor<'a> {
|
|||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
pub enum Suffix<'a> {
|
||||
Accessor(Accessor<'a>),
|
||||
TaskAwaitBang,
|
||||
TrySuffix(TryTarget),
|
||||
}
|
||||
|
||||
/// a `.foo` or `.1` accessor function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue