From f90fbaf6a6ce9d41f712001e0f430e2ba0c4fbe6 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sun, 3 May 2020 18:00:27 +0800 Subject: Add documents owner for ImplDef and SourceFile --- crates/ra_syntax/src/ast/generated/nodes.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ra_syntax') diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 5e844d5ae..c2cc25958 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs @@ -12,6 +12,7 @@ pub struct SourceFile { } impl ast::ModuleItemOwner for SourceFile {} impl ast::AttrsOwner for SourceFile {} +impl ast::DocCommentsOwner for SourceFile {} impl SourceFile { pub fn modules(&self) -> AstChildren { support::children(&self.syntax) } } @@ -259,6 +260,7 @@ pub struct ImplDef { } impl ast::TypeParamsOwner for ImplDef {} impl ast::AttrsOwner for ImplDef {} +impl ast::DocCommentsOwner for ImplDef {} impl ImplDef { pub fn default_token(&self) -> Option { support::token(&self.syntax, T![default]) } pub fn const_token(&self) -> Option { support::token(&self.syntax, T![const]) } -- cgit v1.2.3