From ce3636798bc9481ec712b84b5cad9973b7844425 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 31 Jan 2019 13:40:05 +0300 Subject: move macros to a separate crate --- crates/ra_hir/src/macros/tt.rs | 45 ------------------------------------------ 1 file changed, 45 deletions(-) delete mode 100644 crates/ra_hir/src/macros/tt.rs (limited to 'crates/ra_hir/src/macros/tt.rs') diff --git a/crates/ra_hir/src/macros/tt.rs b/crates/ra_hir/src/macros/tt.rs deleted file mode 100644 index 64e88ddc5..000000000 --- a/crates/ra_hir/src/macros/tt.rs +++ /dev/null @@ -1,45 +0,0 @@ -use ra_syntax::SmolStr; - -#[derive(Debug)] -pub(crate) enum TokenTree { - Leaf(Leaf), - Subtree(Subtree), -} -impl_froms!(TokenTree: Leaf, Subtree); - -#[derive(Debug)] -pub(crate) enum Leaf { - Literal(Literal), - Punct(Punct), - Ident(Ident), -} -impl_froms!(Leaf: Literal, Punct, Ident); - -#[derive(Debug)] -pub(crate) struct Subtree { - pub(crate) delimiter: Delimiter, - pub(crate) token_trees: Vec, -} - -#[derive(Clone, Copy, Debug)] -pub(crate) enum Delimiter { - Parenthesis, - Brace, - Bracket, - None, -} - -#[derive(Debug)] -pub(crate) struct Literal { - pub(crate) text: SmolStr, -} - -#[derive(Debug)] -pub(crate) struct Punct { - pub(crate) char: char, -} - -#[derive(Debug)] -pub(crate) struct Ident { - pub(crate) text: SmolStr, -} -- cgit v1.2.3