aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/syntax_kinds.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/syntax_kinds.rs')
-rw-r--r--crates/ra_syntax/src/syntax_kinds.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/crates/ra_syntax/src/syntax_kinds.rs b/crates/ra_syntax/src/syntax_kinds.rs
deleted file mode 100644
index c1118c5ab..000000000
--- a/crates/ra_syntax/src/syntax_kinds.rs
+++ /dev/null
@@ -1,27 +0,0 @@
1mod generated;
2
3use std::fmt;
4
5use crate::SyntaxKind::*;
6
7pub use self::generated::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
20impl SyntaxKind {
21 pub fn is_trivia(self) -> bool {
22 match self {
23 WHITESPACE | COMMENT => true,
24 _ => false,
25 }
26 }
27}