Initial implementation of view-hir command

This commit is contained in:
Phil Ellison
2020-12-28 18:29:58 +00:00
parent 1d530756ed
commit 077592a12f
10 changed files with 145 additions and 1 deletions

View File

@@ -53,6 +53,14 @@ pub struct SyntaxTreeParams {
pub range: Option<Range>,
}
pub enum ViewHir {}
impl Request for ViewHir {
type Params = lsp_types::TextDocumentPositionParams;
type Result = String;
const METHOD: &'static str = "rust-analyzer/viewHir";
}
pub enum ExpandMacro {}
impl Request for ExpandMacro {