Skip to content

Commit

Permalink
feat(rome_js_analyze): useOptionalChain rome#2748
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Bezrukov committed Aug 19, 2022
1 parent 6bbbc0b commit ac4fe7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/rome_js_syntax/src/expr_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ impl JsObjectExpression {
}

pub fn is_empty(&self) -> bool {
self.members().is_empty
self.members().is_empty()
}
}

Expand Down Expand Up @@ -513,8 +513,8 @@ impl JsAnyExpression {
JsAnyExpression::JsInExpression(_)
| JsAnyExpression::JsInstanceofExpression(_)
| JsAnyExpression::TsAsExpression(_) => OperatorPrecedence::Relational,
JsAnyExpression::JsLogicalExpression(expression) => match expression.operator()?.precedence(),
JsAnyExpression::JsBinaryExpression(expression) => match expression.operator()?.precedence(),
JsAnyExpression::JsLogicalExpression(expression) => expression.operator()?.precedence(),
JsAnyExpression::JsBinaryExpression(expression) => expression.operator()?.precedence(),
JsAnyExpression::TsTypeAssertionExpression(_)
| JsAnyExpression::TsNonNullAssertionExpression(_)
| JsAnyExpression::JsUnaryExpression(_)
Expand Down

0 comments on commit ac4fe7e

Please sign in to comment.