mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
remove nested in expr
This commit is contained in:
parent
19f05c9db8
commit
197835b6ed
6 changed files with 26 additions and 80 deletions
|
@ -151,10 +151,6 @@ pub enum Expr<'a> {
|
|||
SpaceAfter(&'a Expr<'a>, &'a [CommentOrNewline<'a>]),
|
||||
ParensAround(&'a Expr<'a>),
|
||||
|
||||
/// This is used only to avoid cloning when reordering expressions (e.g. in desugar()).
|
||||
/// It lets us take an (&Expr) and create a plain (Expr) from it.
|
||||
Nested(&'a Expr<'a>),
|
||||
|
||||
// Problems
|
||||
MalformedIdent(&'a str, crate::ident::BadIdent),
|
||||
MalformedClosure,
|
||||
|
|
|
@ -1335,9 +1335,7 @@ fn expr_to_pattern_help<'a>(arena: &'a Bump, expr: &Expr<'a>) -> Result<Pattern<
|
|||
spaces,
|
||||
)),
|
||||
|
||||
Expr::ParensAround(sub_expr) | Expr::Nested(sub_expr) => {
|
||||
expr_to_pattern_help(arena, sub_expr)
|
||||
}
|
||||
Expr::ParensAround(sub_expr) => expr_to_pattern_help(arena, sub_expr),
|
||||
|
||||
Expr::Record {
|
||||
fields,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue