aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r--crates/ra_syntax/src/ast/generated.rs29
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 435d90116..c2e89de15 100644
--- a/crates/ra_syntax/src/ast/generated.rs
+++ b/crates/ra_syntax/src/ast/generated.rs
@@ -4375,32 +4375,3 @@ impl WhileExpr {
4375 } 4375 }
4376} 4376}
4377 4377
4378// Whitespace
4379#[derive(Debug, PartialEq, Eq, Hash)]
4380#[repr(transparent)]
4381pub struct Whitespace {
4382 pub(crate) syntax: SyntaxNode,
4383}
4384unsafe impl TransparentNewType for Whitespace {
4385 type Repr = rowan::SyntaxNode<RaTypes>;
4386}
4387
4388impl AstNode for Whitespace {
4389 fn cast(syntax: &SyntaxNode) -> Option<&Self> {
4390 match syntax.kind() {
4391 WHITESPACE => Some(Whitespace::from_repr(syntax.into_repr())),
4392 _ => None,
4393 }
4394 }
4395 fn syntax(&self) -> &SyntaxNode { &self.syntax }
4396}
4397
4398impl ToOwned for Whitespace {
4399 type Owned = TreeArc<Whitespace>;
4400 fn to_owned(&self) -> TreeArc<Whitespace> { TreeArc::cast(self.syntax.to_owned()) }
4401}
4402
4403
4404impl ast::AstToken for Whitespace {}
4405impl Whitespace {}
4406