diff options
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 4afe1a146..1dc5d810d 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -4367,32 +4367,3 @@ impl WhileExpr { | |||
4367 | } | 4367 | } |
4368 | } | 4368 | } |
4369 | 4369 | ||
4370 | // Whitespace | ||
4371 | #[derive(Debug, PartialEq, Eq, Hash)] | ||
4372 | #[repr(transparent)] | ||
4373 | pub struct Whitespace { | ||
4374 | pub(crate) syntax: SyntaxNode, | ||
4375 | } | ||
4376 | unsafe impl TransparentNewType for Whitespace { | ||
4377 | type Repr = rowan::SyntaxNode<RaTypes>; | ||
4378 | } | ||
4379 | |||
4380 | impl AstNode for Whitespace { | ||
4381 | fn cast(syntax: &SyntaxNode) -> Option<&Self> { | ||
4382 | match syntax.kind() { | ||
4383 | WHITESPACE => Some(Whitespace::from_repr(syntax.into_repr())), | ||
4384 | _ => None, | ||
4385 | } | ||
4386 | } | ||
4387 | fn syntax(&self) -> &SyntaxNode { &self.syntax } | ||
4388 | } | ||
4389 | |||
4390 | impl ToOwned for Whitespace { | ||
4391 | type Owned = TreeArc<Whitespace>; | ||
4392 | fn to_owned(&self) -> TreeArc<Whitespace> { TreeArc::cast(self.syntax.to_owned()) } | ||
4393 | } | ||
4394 | |||
4395 | |||
4396 | impl ast::AstToken for Whitespace {} | ||
4397 | impl Whitespace {} | ||
4398 | |||