Skip to content

Commit 7b0aef2

Browse files
committed
fix(ast): correct logic in Expression::is_call_like_expression
1 parent 977d3ba commit 7b0aef2

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
@@ -341,7 +341,7 @@ impl<'a> Expression<'a> {
341341
/// or [`ImportExpression`].
342342
pub fn is_call_like_expression(&self) -> bool {
343343
self.is_call_expression()
344-
&& matches!(self, Expression::NewExpression(_) | Expression::ImportExpression(_))
344+
|| matches!(self, Expression::NewExpression(_) | Expression::ImportExpression(_))
345345
}
346346

347347
/// Returns `true` if this [`Expression`] is a [`BinaryExpression`] or [`LogicalExpression`].

0 commit comments

Comments
 (0)