diff options
Diffstat (limited to 'crates/ra_syntax/src/ast/generated.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 18 |
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 ef7b5b1a1..85aa5e0dd 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -2193,3 +2193,21 @@ impl<'a> WhileExpr<'a> { | |||
2193 | } | 2193 | } |
2194 | } | 2194 | } |
2195 | 2195 | ||
2196 | // Whitespace | ||
2197 | #[derive(Debug, Clone, Copy)] | ||
2198 | pub struct Whitespace<'a> { | ||
2199 | syntax: SyntaxNodeRef<'a>, | ||
2200 | } | ||
2201 | |||
2202 | impl<'a> AstNode<'a> for Whitespace<'a> { | ||
2203 | fn cast(syntax: SyntaxNodeRef<'a>) -> Option<Self> { | ||
2204 | match syntax.kind() { | ||
2205 | WHITESPACE => Some(Whitespace { syntax }), | ||
2206 | _ => None, | ||
2207 | } | ||
2208 | } | ||
2209 | fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax } | ||
2210 | } | ||
2211 | |||
2212 | impl<'a> Whitespace<'a> {} | ||
2213 | |||