Don't require module docs for Features and Assists

This commit is contained in:
Aleksey Kladov 2020-05-31 09:59:38 +02:00
parent f593393ebb
commit 8915183d7d
16 changed files with 140 additions and 45 deletions

View file

@ -1,5 +1,3 @@
//! FIXME: write short doc here
use ra_db::SourceDatabase;
use ra_ide_db::RootDatabase;
use ra_syntax::{
@ -8,8 +6,16 @@ use ra_syntax::{
SyntaxToken, TextRange, TextSize,
};
pub use ra_db::FileId;
// Feature: Show Syntax Tree
//
// Shows the parse tree of the current file. It exists mostly for debugging
// rust-analyzer itself.
//
// |===
// | Editor | Action Name
//
// | VS Code | **Rust Analyzer: Show Syntax Tree**
// |===
pub(crate) fn syntax_tree(
db: &RootDatabase,
file_id: FileId,