From 6df71da81f9260890ac42ed992946543d697e57c Mon Sep 17 00:00:00 2001 From: "Jeremy A. Kolb" Date: Fri, 2 Nov 2018 09:59:07 -0400 Subject: Add some more DocCommentsOwner --- crates/ra_syntax/src/ast/generated.rs | 7 +++++++ crates/ra_syntax/src/grammar.ron | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 3878c99a8..8cf3222f7 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs @@ -608,6 +608,7 @@ impl> ConstDefNode { impl<'a> ast::NameOwner<'a> for ConstDef<'a> {} impl<'a> ast::TypeParamsOwner<'a> for ConstDef<'a> {} impl<'a> ast::AttrsOwner<'a> for ConstDef<'a> {} +impl<'a> ast::DocCommentsOwner<'a> for ConstDef<'a> {} impl<'a> ConstDef<'a> {} // ContinueExpr @@ -722,6 +723,7 @@ impl> EnumDefNode { impl<'a> ast::NameOwner<'a> for EnumDef<'a> {} impl<'a> ast::TypeParamsOwner<'a> for EnumDef<'a> {} impl<'a> ast::AttrsOwner<'a> for EnumDef<'a> {} +impl<'a> ast::DocCommentsOwner<'a> for EnumDef<'a> {} impl<'a> EnumDef<'a> {} // Expr @@ -1886,6 +1888,7 @@ impl> ModuleNode { impl<'a> ast::NameOwner<'a> for Module<'a> {} impl<'a> ast::AttrsOwner<'a> for Module<'a> {} +impl<'a> ast::DocCommentsOwner<'a> for Module<'a> {} impl<'a> Module<'a> { pub fn item_list(self) -> Option> { super::child_opt(self) @@ -3205,6 +3208,7 @@ impl> StaticDefNode { impl<'a> ast::NameOwner<'a> for StaticDef<'a> {} impl<'a> ast::TypeParamsOwner<'a> for StaticDef<'a> {} impl<'a> ast::AttrsOwner<'a> for StaticDef<'a> {} +impl<'a> ast::DocCommentsOwner<'a> for StaticDef<'a> {} impl<'a> StaticDef<'a> {} // Stmt @@ -3270,6 +3274,7 @@ impl> StructDefNode { impl<'a> ast::NameOwner<'a> for StructDef<'a> {} impl<'a> ast::TypeParamsOwner<'a> for StructDef<'a> {} impl<'a> ast::AttrsOwner<'a> for StructDef<'a> {} +impl<'a> ast::DocCommentsOwner<'a> for StructDef<'a> {} impl<'a> StructDef<'a> { pub fn fields(self) -> impl Iterator> + 'a { super::children(self) @@ -3424,6 +3429,7 @@ impl> TraitDefNode { impl<'a> ast::NameOwner<'a> for TraitDef<'a> {} impl<'a> ast::AttrsOwner<'a> for TraitDef<'a> {} +impl<'a> ast::DocCommentsOwner<'a> for TraitDef<'a> {} impl<'a> TraitDef<'a> {} // TryExpr @@ -3649,6 +3655,7 @@ impl> TypeDefNode { impl<'a> ast::NameOwner<'a> for TypeDef<'a> {} impl<'a> ast::TypeParamsOwner<'a> for TypeDef<'a> {} impl<'a> ast::AttrsOwner<'a> for TypeDef<'a> {} +impl<'a> ast::DocCommentsOwner<'a> for TypeDef<'a> {} impl<'a> TypeDef<'a> {} // TypeParam diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index 2ed165c52..1fa25dc4d 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron @@ -260,6 +260,7 @@ Grammar( "NameOwner", "TypeParamsOwner", "AttrsOwner", + "DocCommentsOwner" ], collections: [ ["fields", "NamedFieldDef"] @@ -270,10 +271,11 @@ Grammar( "NameOwner", "TypeParamsOwner", "AttrsOwner", + "DocCommentsOwner" ] ), - "TraitDef": ( traits: ["NameOwner", "AttrsOwner"] ), + "TraitDef": ( traits: ["NameOwner", "AttrsOwner", "DocCommentsOwner"] ), "Module": ( - traits: ["NameOwner", "AttrsOwner" ], + traits: ["NameOwner", "AttrsOwner", "DocCommentsOwner" ], options: [ "ItemList" ] ), "ItemList": ( @@ -283,16 +285,19 @@ Grammar( "NameOwner", "TypeParamsOwner", "AttrsOwner", + "DocCommentsOwner" ] ), "StaticDef": ( traits: [ "NameOwner", "TypeParamsOwner", "AttrsOwner", + "DocCommentsOwner" ] ), "TypeDef": ( traits: [ "NameOwner", "TypeParamsOwner", "AttrsOwner", + "DocCommentsOwner" ] ), "ImplItem": (), -- cgit v1.2.3