mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Reorder CompletionContext fields
This commit is contained in:
parent
8b6c3eaaeb
commit
aa29364f83
2 changed files with 15 additions and 18 deletions
|
@ -223,9 +223,8 @@ impl FnCallNode {
|
|||
ast::Expr::PathExpr(path_expr) => path_expr.path()?.segment()?.name_ref()?,
|
||||
_ => return None,
|
||||
}),
|
||||
|
||||
FnCallNode::MethodCallExpr(call_expr) => {
|
||||
call_expr.syntax().children().filter_map(ast::NameRef::cast).next()
|
||||
call_expr.syntax().children().find_map(ast::NameRef::cast)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue