We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a27ad35 commit 15f875dCopy full SHA for 15f875d
crates/oxc_ast/src/ast_impl/js.rs
@@ -1418,7 +1418,7 @@ impl<'a> Function<'a> {
1418
self.r#type.is_typescript_syntax() || self.body.is_none() || self.declare
1419
}
1420
1421
- /// `true` for function expressions
+ /// `true` for both function expressions and typescript empty body function expressions
1422
pub fn is_expression(&self) -> bool {
1423
self.r#type == FunctionType::FunctionExpression
1424
|| self.r#type == FunctionType::TSEmptyBodyFunctionExpression
0 commit comments