diff options
Diffstat (limited to 'crates/ra_syntax/src/syntax_kinds.rs')
-rw-r--r-- | crates/ra_syntax/src/syntax_kinds.rs | 27 |
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 @@ | |||
1 | mod generated; | ||
2 | |||
3 | use std::fmt; | ||
4 | |||
5 | use crate::SyntaxKind::*; | ||
6 | |||
7 | pub use self::generated::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 | impl SyntaxKind { | ||
21 | pub fn is_trivia(self) -> bool { | ||
22 | match self { | ||
23 | WHITESPACE | COMMENT => true, | ||
24 | _ => false, | ||
25 | } | ||
26 | } | ||
27 | } | ||