blob: d23290b74b29086bd7a54a3c54651df68a21aec2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use ra_db::SourceDatabase;
use ra_syntax::AstNode;
use crate::{
TextRange, FileRange,
db::RootDatabase,
};
// FIXME: restore macro support
pub(crate) fn extend_selection(db: &RootDatabase, frange: FileRange) -> TextRange {
let source_file = db.parse(frange.file_id);
ra_ide_api_light::extend_selection(source_file.syntax(), frange.range).unwrap_or(frange.range)
}
|