diff options
Diffstat (limited to 'src/tree/mod.rs')
-rw-r--r-- | src/tree/mod.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/tree/mod.rs b/src/tree/mod.rs deleted file mode 100644 index efba82825..000000000 --- a/src/tree/mod.rs +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | mod file_builder; | ||
2 | |||
3 | use ::{TextUnit}; | ||
4 | use std::{fmt}; | ||
5 | pub(crate) use self::file_builder::{Sink, GreenBuilder}; | ||
6 | |||
7 | pub use syntax_kinds::SyntaxKind; | ||
8 | |||
9 | impl fmt::Debug for SyntaxKind { | ||
10 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
11 | let name = self.info().name; | ||
12 | f.write_str(name) | ||
13 | } | ||
14 | } | ||
15 | |||
16 | pub(crate) struct SyntaxInfo { | ||
17 | pub name: &'static str, | ||
18 | } | ||
19 | |||
20 | /// A token of Rust source. | ||
21 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] | ||
22 | pub struct Token { | ||
23 | /// The kind of token. | ||
24 | pub kind: SyntaxKind, | ||
25 | /// The length of the token. | ||
26 | pub len: TextUnit, | ||
27 | } | ||