kill utils module

This commit is contained in:
Aleksey Kladov 2019-02-21 15:51:22 +03:00
parent 9be7426aae
commit f7f99af0a6
10 changed files with 101 additions and 114 deletions

View file

@ -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