mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
move SyntaxPtr to ra_syntax
This commit is contained in:
parent
81fcfc55d2
commit
7b901f86cd
12 changed files with 109 additions and 108 deletions
|
@ -153,7 +153,7 @@ impl db::RootDatabase {
|
|||
source_binder::function_from_child_node(db, position.file_id, name_ref.syntax())?;
|
||||
let scope = descr.scopes(db);
|
||||
let resolved = scope.resolve_local_name(name_ref)?;
|
||||
let resolved = resolved.ptr().resolve(source_file);
|
||||
let resolved = resolved.ptr().to_node(source_file);
|
||||
let binding = find_node_at_offset::<ast::BindPat>(syntax, resolved.range().end())?;
|
||||
Some((binding, descr))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue