aboutsummaryrefslogtreecommitdiff
path: root/codeless/server/src/req.rs
blob: bc54c1d3333f573fd1126f3891413b83d50eb4cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use languageserver_types::TextDocumentIdentifier;
pub use languageserver_types::request::*;

pub enum SyntaxTree {}

impl Request for SyntaxTree {
    type Params = SyntaxTreeParams;
    type Result = String;
    const METHOD: &'static str = "m/syntaxTree";
}

#[derive(Deserialize, Debug)]
#[serde(rename_all="camelCase")]
pub struct SyntaxTreeParams {
    pub text_document: TextDocumentIdentifier
}