diff options
Diffstat (limited to 'crates/libsyntax2')
-rw-r--r-- | crates/libsyntax2/src/ast/generated.rs | 1 | ||||
-rw-r--r-- | crates/libsyntax2/src/grammar.ron | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/ast/generated.rs b/crates/libsyntax2/src/ast/generated.rs index 4a57837df..a239f0630 100644 --- a/crates/libsyntax2/src/ast/generated.rs +++ b/crates/libsyntax2/src/ast/generated.rs | |||
@@ -698,6 +698,7 @@ impl<'a> AstNode<'a> for ItemList<'a> { | |||
698 | fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax } | 698 | fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax } |
699 | } | 699 | } |
700 | 700 | ||
701 | impl<'a> ast::FnDefOwner<'a> for ItemList<'a> {} | ||
701 | impl<'a> ItemList<'a> { | 702 | impl<'a> ItemList<'a> { |
702 | pub fn items(self) -> impl Iterator<Item = ModuleItem<'a>> + 'a { | 703 | pub fn items(self) -> impl Iterator<Item = ModuleItem<'a>> + 'a { |
703 | super::children(self) | 704 | super::children(self) |
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index 8a2b780f0..6ed658daa 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron | |||
@@ -275,6 +275,7 @@ Grammar( | |||
275 | options: [ "ItemList" ] | 275 | options: [ "ItemList" ] |
276 | ), | 276 | ), |
277 | "ItemList": ( | 277 | "ItemList": ( |
278 | traits: [ "FnDefOwner" ], | ||
278 | collections: [ ["items", "ModuleItem"] ] | 279 | collections: [ ["items", "ModuleItem"] ] |
279 | ), | 280 | ), |
280 | "ConstDef": ( traits: [ | 281 | "ConstDef": ( traits: [ |