From 6846ac2a166fd8bae1374895179eb452fe62da86 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 30 Jan 2019 23:14:13 +0300 Subject: shorten name :-) --- crates/ra_hir/src/macros/token_tree.rs | 36 ---------------------------------- crates/ra_hir/src/macros/tt.rs | 36 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 36 deletions(-) delete mode 100644 crates/ra_hir/src/macros/token_tree.rs create mode 100644 crates/ra_hir/src/macros/tt.rs (limited to 'crates/ra_hir/src/macros') diff --git a/crates/ra_hir/src/macros/token_tree.rs b/crates/ra_hir/src/macros/token_tree.rs deleted file mode 100644 index 7026ce3b3..000000000 --- a/crates/ra_hir/src/macros/token_tree.rs +++ /dev/null @@ -1,36 +0,0 @@ -use ra_syntax::SmolStr; - -enum TokenTree { - Leaf(Leaf), - Subtree(Subtree), -} - -enum Leaf { - Literal(Literal), - Punct(Punct), - Ident(Ident), -} - -struct Subtree { - delimiter: Delimiter, - token_trees: Vec, -} - -enum Delimiter { - Parenthesis, - Brace, - Bracket, - None, -} - -struct Literal { - text: SmolStr, -} - -struct Punct { - char: char, -} - -struct Ident { - text: SmolStr, -} diff --git a/crates/ra_hir/src/macros/tt.rs b/crates/ra_hir/src/macros/tt.rs new file mode 100644 index 000000000..7026ce3b3 --- /dev/null +++ b/crates/ra_hir/src/macros/tt.rs @@ -0,0 +1,36 @@ +use ra_syntax::SmolStr; + +enum TokenTree { + Leaf(Leaf), + Subtree(Subtree), +} + +enum Leaf { + Literal(Literal), + Punct(Punct), + Ident(Ident), +} + +struct Subtree { + delimiter: Delimiter, + token_trees: Vec, +} + +enum Delimiter { + Parenthesis, + Brace, + Bracket, + None, +} + +struct Literal { + text: SmolStr, +} + +struct Punct { + char: char, +} + +struct Ident { + text: SmolStr, +} -- cgit v1.2.3