diff options
author | Aleksey Kladov <[email protected]> | 2018-07-29 13:16:07 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-29 13:16:07 +0100 |
commit | 415c891d641fa305e7ddbbbcc78db990dd5d3564 (patch) | |
tree | 4b6e1e0aa4b5a732aeae8945e75c9bee3bbf1d65 /src/tree/mod.rs | |
parent | ad188d4c3db34f035408afbdd6d2f3c308121f0a (diff) |
Reorganize
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 | } | ||