aboutsummaryrefslogtreecommitdiff
path: root/src/tree/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tree/mod.rs')
-rw-r--r--src/tree/mod.rs27
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 @@
1mod file_builder;
2
3use ::{TextUnit};
4use std::{fmt};
5pub(crate) use self::file_builder::{Sink, GreenBuilder};
6
7pub use syntax_kinds::SyntaxKind;
8
9impl 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
16pub(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)]
22pub struct Token {
23 /// The kind of token.
24 pub kind: SyntaxKind,
25 /// The length of the token.
26 pub len: TextUnit,
27}