mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Owned
This commit is contained in:
parent
d3c90ded2b
commit
c7b1be6be3
4 changed files with 11 additions and 4 deletions
|
@ -6,7 +6,7 @@ use libsyntax2::{
|
|||
|
||||
pub fn extend_selection(file: &ParsedFile, range: TextRange) -> Option<TextRange> {
|
||||
let syntax = file.syntax();
|
||||
extend(syntax.as_ref(), range)
|
||||
extend(syntax.borrowed(), range)
|
||||
}
|
||||
|
||||
pub(crate) fn extend(root: SyntaxNodeRef, range: TextRange) -> Option<TextRange> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue