diff options
Diffstat (limited to 'crates/ra_syntax/src/ast/generated')
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 158544fa2..3f075a5f8 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs | |||
@@ -1198,14 +1198,6 @@ impl TuplePat { | |||
1198 | pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![')']) } | 1198 | pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![')']) } |
1199 | } | 1199 | } |
1200 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1200 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1201 | pub struct MacroDef { | ||
1202 | pub(crate) syntax: SyntaxNode, | ||
1203 | } | ||
1204 | impl ast::NameOwner for MacroDef {} | ||
1205 | impl MacroDef { | ||
1206 | pub fn token_tree(&self) -> Option<TokenTree> { support::child(&self.syntax) } | ||
1207 | } | ||
1208 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | ||
1209 | pub struct MacroItems { | 1201 | pub struct MacroItems { |
1210 | pub(crate) syntax: SyntaxNode, | 1202 | pub(crate) syntax: SyntaxNode, |
1211 | } | 1203 | } |
@@ -2677,17 +2669,6 @@ impl AstNode for TuplePat { | |||
2677 | } | 2669 | } |
2678 | fn syntax(&self) -> &SyntaxNode { &self.syntax } | 2670 | fn syntax(&self) -> &SyntaxNode { &self.syntax } |
2679 | } | 2671 | } |
2680 | impl AstNode for MacroDef { | ||
2681 | fn can_cast(kind: SyntaxKind) -> bool { kind == MACRO_DEF } | ||
2682 | fn cast(syntax: SyntaxNode) -> Option<Self> { | ||
2683 | if Self::can_cast(syntax.kind()) { | ||
2684 | Some(Self { syntax }) | ||
2685 | } else { | ||
2686 | None | ||
2687 | } | ||
2688 | } | ||
2689 | fn syntax(&self) -> &SyntaxNode { &self.syntax } | ||
2690 | } | ||
2691 | impl AstNode for MacroItems { | 2672 | impl AstNode for MacroItems { |
2692 | fn can_cast(kind: SyntaxKind) -> bool { kind == MACRO_ITEMS } | 2673 | fn can_cast(kind: SyntaxKind) -> bool { kind == MACRO_ITEMS } |
2693 | fn cast(syntax: SyntaxNode) -> Option<Self> { | 2674 | fn cast(syntax: SyntaxNode) -> Option<Self> { |
@@ -4015,11 +3996,6 @@ impl std::fmt::Display for TuplePat { | |||
4015 | std::fmt::Display::fmt(self.syntax(), f) | 3996 | std::fmt::Display::fmt(self.syntax(), f) |
4016 | } | 3997 | } |
4017 | } | 3998 | } |
4018 | impl std::fmt::Display for MacroDef { | ||
4019 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||
4020 | std::fmt::Display::fmt(self.syntax(), f) | ||
4021 | } | ||
4022 | } | ||
4023 | impl std::fmt::Display for MacroItems { | 3999 | impl std::fmt::Display for MacroItems { |
4024 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | 4000 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
4025 | std::fmt::Display::fmt(self.syntax(), f) | 4001 | std::fmt::Display::fmt(self.syntax(), f) |