diff options
Diffstat (limited to 'crates/ra_hir/src/macros/token_tree.rs')
-rw-r--r-- | crates/ra_hir/src/macros/token_tree.rs | 36 |
1 files changed, 0 insertions, 36 deletions
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 @@ | |||
1 | use ra_syntax::SmolStr; | ||
2 | |||
3 | enum TokenTree { | ||
4 | Leaf(Leaf), | ||
5 | Subtree(Subtree), | ||
6 | } | ||
7 | |||
8 | enum Leaf { | ||
9 | Literal(Literal), | ||
10 | Punct(Punct), | ||
11 | Ident(Ident), | ||
12 | } | ||
13 | |||
14 | struct Subtree { | ||
15 | delimiter: Delimiter, | ||
16 | token_trees: Vec<TokenTree>, | ||
17 | } | ||
18 | |||
19 | enum Delimiter { | ||
20 | Parenthesis, | ||
21 | Brace, | ||
22 | Bracket, | ||
23 | None, | ||
24 | } | ||
25 | |||
26 | struct Literal { | ||
27 | text: SmolStr, | ||
28 | } | ||
29 | |||
30 | struct Punct { | ||
31 | char: char, | ||
32 | } | ||
33 | |||
34 | struct Ident { | ||
35 | text: SmolStr, | ||
36 | } | ||