mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
kill utils module
This commit is contained in:
parent
9be7426aae
commit
f7f99af0a6
10 changed files with 101 additions and 114 deletions
|
@ -38,7 +38,7 @@ mod marks;
|
|||
|
||||
use std::sync::Arc;
|
||||
|
||||
use ra_syntax::{SourceFile, TreeArc, TextRange, TextUnit};
|
||||
use ra_syntax::{SourceFile, TreeArc, TextRange, TextUnit, AstNode};
|
||||
use ra_text_edit::TextEdit;
|
||||
use ra_db::{
|
||||
SourceDatabase, CheckCanceled,
|
||||
|
@ -244,8 +244,7 @@ impl Analysis {
|
|||
/// Returns a syntax tree represented as `String`, for debug purposes.
|
||||
// FIXME: use a better name here.
|
||||
pub fn syntax_tree(&self, file_id: FileId) -> String {
|
||||
let file = self.db.parse(file_id);
|
||||
ra_ide_api_light::syntax_tree(&file)
|
||||
self.db.parse(file_id).syntax().debug_dump()
|
||||
}
|
||||
|
||||
/// Returns an edit to remove all newlines in the range, cleaning up minor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue