diff options
author | Aleksey Kladov <[email protected]> | 2018-09-03 13:46:14 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-03 13:46:14 +0100 |
commit | 2f2feef9afe8f1c75f743a56f945a1560ca85af4 (patch) | |
tree | e0c38474c39feaf4aae0de4ac2f4ec7d8ad91c79 /crates/libsyntax2 | |
parent | 4798a89a12f40af17174a160f6d6a2f1c53db8d6 (diff) |
completion for trait params
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: [ |