diff options
Diffstat (limited to 'crates/libsyntax2/src/ast/generated.rs')
-rw-r--r-- | crates/libsyntax2/src/ast/generated.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/crates/libsyntax2/src/ast/generated.rs b/crates/libsyntax2/src/ast/generated.rs index a239f0630..c945c094a 100644 --- a/crates/libsyntax2/src/ast/generated.rs +++ b/crates/libsyntax2/src/ast/generated.rs | |||
@@ -699,11 +699,8 @@ impl<'a> AstNode<'a> for ItemList<'a> { | |||
699 | } | 699 | } |
700 | 700 | ||
701 | impl<'a> ast::FnDefOwner<'a> for ItemList<'a> {} | 701 | impl<'a> ast::FnDefOwner<'a> for ItemList<'a> {} |
702 | impl<'a> ItemList<'a> { | 702 | impl<'a> ast::ModuleItemOwner<'a> for ItemList<'a> {} |
703 | pub fn items(self) -> impl Iterator<Item = ModuleItem<'a>> + 'a { | 703 | impl<'a> ItemList<'a> {} |
704 | super::children(self) | ||
705 | } | ||
706 | } | ||
707 | 704 | ||
708 | // Label | 705 | // Label |
709 | #[derive(Debug, Clone, Copy)] | 706 | #[derive(Debug, Clone, Copy)] |
@@ -979,7 +976,6 @@ impl<'a> AstNode<'a> for Module<'a> { | |||
979 | 976 | ||
980 | impl<'a> ast::NameOwner<'a> for Module<'a> {} | 977 | impl<'a> ast::NameOwner<'a> for Module<'a> {} |
981 | impl<'a> ast::AttrsOwner<'a> for Module<'a> {} | 978 | impl<'a> ast::AttrsOwner<'a> for Module<'a> {} |
982 | impl<'a> ast::FnDefOwner<'a> for Module<'a> {} | ||
983 | impl<'a> Module<'a> {pub fn item_list(self) -> Option<ItemList<'a>> { | 979 | impl<'a> Module<'a> {pub fn item_list(self) -> Option<ItemList<'a>> { |
984 | super::child_opt(self) | 980 | super::child_opt(self) |
985 | } | 981 | } |
@@ -1616,12 +1612,9 @@ impl<'a> AstNode<'a> for Root<'a> { | |||
1616 | fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax } | 1612 | fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax } |
1617 | } | 1613 | } |
1618 | 1614 | ||
1615 | impl<'a> ast::ModuleItemOwner<'a> for Root<'a> {} | ||
1619 | impl<'a> ast::FnDefOwner<'a> for Root<'a> {} | 1616 | impl<'a> ast::FnDefOwner<'a> for Root<'a> {} |
1620 | impl<'a> Root<'a> { | 1617 | impl<'a> Root<'a> { |
1621 | pub fn items(self) -> impl Iterator<Item = ModuleItem<'a>> + 'a { | ||
1622 | super::children(self) | ||
1623 | } | ||
1624 | |||
1625 | pub fn modules(self) -> impl Iterator<Item = Module<'a>> + 'a { | 1618 | pub fn modules(self) -> impl Iterator<Item = Module<'a>> + 'a { |
1626 | super::children(self) | 1619 | super::children(self) |
1627 | } | 1620 | } |