mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Desugar stmt expr before checking whether it's suffixed
This commit is contained in:
parent
01c94050c8
commit
460fa693fd
3 changed files with 12 additions and 6 deletions
|
@ -592,10 +592,7 @@ pub fn is_top_level_suffixed(expr: &Expr) -> bool {
|
|||
pub fn is_expr_suffixed(expr: &Expr) -> bool {
|
||||
match expr {
|
||||
// expression without arguments, `read!`
|
||||
Expr::Var {
|
||||
module_name: _,
|
||||
ident,
|
||||
} => ident.ends_with('!'),
|
||||
Expr::Var { .. } => false,
|
||||
|
||||
Expr::TrySuffix { .. } => true,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue