mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
make AstId untyped
This commit is contained in:
parent
033a32f349
commit
549728bba8
11 changed files with 29 additions and 24 deletions
|
@ -81,7 +81,7 @@ impl NavigationTarget {
|
|||
) -> NavigationTarget {
|
||||
let file = db.parse(file_id);
|
||||
let (name, full_range) = match pat {
|
||||
Either::A(pat) => match pat.to_node(&file).kind() {
|
||||
Either::A(pat) => match pat.to_node(file.syntax()).kind() {
|
||||
ast::PatKind::BindPat(pat) => {
|
||||
return NavigationTarget::from_bind_pat(file_id, &pat)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue