Remove ASTFlags::EMPTY.

This commit is contained in:
Stephen Chung
2023-03-22 10:19:30 +08:00
parent 7caf80e27c
commit 3d4a278f2e
4 changed files with 15 additions and 17 deletions

View File

@@ -779,13 +779,13 @@ impl Stmt {
| Self::While(..)
| Self::For(..)
| Self::TryCatch(..)
| Self::Assignment(..) => ASTFlags::NONE,
| Self::Assignment(..) => ASTFlags::empty(),
#[cfg(not(feature = "no_module"))]
Self::Import(..) | Self::Export(..) => ASTFlags::NONE,
Self::Import(..) | Self::Export(..) => ASTFlags::empty(),
#[cfg(not(feature = "no_closure"))]
Self::Share(..) => ASTFlags::NONE,
Self::Share(..) => ASTFlags::empty(),
}
}
/// Get the [position][Position] of this statement.