aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-04-01 22:27:45 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-04-01 22:27:45 +0100
commitc2912892effbcf24d94da235b9ac0d2a7fccea5d (patch)
treea8b8fa88fe68d7c9d4b63dd6af85cd74926703da /crates/ra_syntax/src/ast
parent9282c6d3d03ac236a6d33b6f0a6ac076d0b11725 (diff)
parent8014116e5f07eb99e2cd12c578f117f3b5280c69 (diff)
Merge #1084
1084: remove dead code r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
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