mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
internal: Bump Dependencies
This commit is contained in:
parent
0cf677ab42
commit
76ae5434fa
51 changed files with 181 additions and 168 deletions
|
@ -209,8 +209,10 @@ impl ReplacementRenderer<'_> {
|
|||
fn token_is_method_call_receiver(token: &SyntaxToken) -> bool {
|
||||
// Find the first method call among the ancestors of `token`, then check if the only token
|
||||
// within the receiver is `token`.
|
||||
if let Some(receiver) =
|
||||
token.ancestors().find_map(ast::MethodCallExpr::cast).and_then(|call| call.receiver())
|
||||
if let Some(receiver) = token
|
||||
.parent_ancestors()
|
||||
.find_map(ast::MethodCallExpr::cast)
|
||||
.and_then(|call| call.receiver())
|
||||
{
|
||||
let tokens = receiver.syntax().descendants_with_tokens().filter_map(|node_or_token| {
|
||||
match node_or_token {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue