File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -343,18 +343,12 @@ pub fn is_method_call<'a>(
343343 }
344344 }
345345
346- let callee_without_parentheses = call_expr. callee . without_parentheses ( ) ;
347- let member_expr = match callee_without_parentheses {
348- match_member_expression ! ( Expression ) => callee_without_parentheses. to_member_expression ( ) ,
349- Expression :: ChainExpression ( chain) => match chain. expression . member_expression ( ) {
350- Some ( e) => e,
351- None => return false ,
352- } ,
353- _ => return false ,
346+ let Some ( member_expr) = call_expr. callee . get_member_expr ( ) else {
347+ return false ;
354348 } ;
355349
356350 if let Some ( objects) = objects {
357- let Expression :: Identifier ( ident) = member_expr. object ( ) . without_parentheses ( ) else {
351+ let Expression :: Identifier ( ident) = member_expr. object ( ) . get_inner_expression ( ) else {
358352 return false ;
359353 } ;
360354 if !objects. contains ( & ident. name . as_str ( ) ) {
You can’t perform that action at this time.
0 commit comments