aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/generated.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/ast/generated.rs')
-rw-r--r--crates/ra_syntax/src/ast/generated.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs
index f27093291..ef7b5b1a1 100644
--- a/crates/ra_syntax/src/ast/generated.rs
+++ b/crates/ra_syntax/src/ast/generated.rs
@@ -231,6 +231,24 @@ impl<'a> AstNode<'a> for CastExpr<'a> {
231 231
232impl<'a> CastExpr<'a> {} 232impl<'a> CastExpr<'a> {}
233 233
234// Comment
235#[derive(Debug, Clone, Copy)]
236pub struct Comment<'a> {
237 syntax: SyntaxNodeRef<'a>,
238}
239
240impl<'a> AstNode<'a> for Comment<'a> {
241 fn cast(syntax: SyntaxNodeRef<'a>) -> Option<Self> {
242 match syntax.kind() {
243 COMMENT => Some(Comment { syntax }),
244 _ => None,
245 }
246 }
247 fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax }
248}
249
250impl<'a> Comment<'a> {}
251
234// Condition 252// Condition
235#[derive(Debug, Clone, Copy)] 253#[derive(Debug, Clone, Copy)]
236pub struct Condition<'a> { 254pub struct Condition<'a> {