kill utils module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user