Skip to content

Commit 15f875d

Browse files
committed
chore: update comment
1 parent a27ad35 commit 15f875d

File tree

1 file changed

+1
-1
lines changed
  • crates/oxc_ast/src/ast_impl

1 file changed

+1
-1
lines changed

crates/oxc_ast/src/ast_impl/js.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ impl<'a> Function<'a> {
14181418
self.r#type.is_typescript_syntax() || self.body.is_none() || self.declare
14191419
}
14201420

1421-
/// `true` for function expressions
1421+
/// `true` for both function expressions and typescript empty body function expressions
14221422
pub fn is_expression(&self) -> bool {
14231423
self.r#type == FunctionType::FunctionExpression
14241424
|| self.r#type == FunctionType::TSEmptyBodyFunctionExpression

0 commit comments

Comments
 (0)