aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/syntax_kinds/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/syntax_kinds/mod.rs')
-rw-r--r--crates/ra_syntax/src/syntax_kinds/mod.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/crates/ra_syntax/src/syntax_kinds/mod.rs b/crates/ra_syntax/src/syntax_kinds/mod.rs
deleted file mode 100644
index d53886676..000000000
--- a/crates/ra_syntax/src/syntax_kinds/mod.rs
+++ /dev/null
@@ -1,26 +0,0 @@
1mod generated;
2
3use crate::SyntaxKind::*;
4use std::fmt;
5
6pub use self::generated::SyntaxKind;
7
8impl fmt::Debug for SyntaxKind {
9 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10 let name = self.info().name;
11 f.write_str(name)
12 }
13}
14
15pub(crate) struct SyntaxInfo {
16 pub name: &'static str,
17}
18
19impl SyntaxKind {
20 pub fn is_trivia(self) -> bool {
21 match self {
22 WHITESPACE | COMMENT => true,
23 _ => false,
24 }
25 }
26}