From 4798a89a12f40af17174a160f6d6a2f1c53db8d6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 3 Sep 2018 15:10:06 +0300 Subject: Complete params --- crates/libsyntax2/src/ast/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crates/libsyntax2/src/ast/mod.rs') diff --git a/crates/libsyntax2/src/ast/mod.rs b/crates/libsyntax2/src/ast/mod.rs index 274996171..881f380f3 100644 --- a/crates/libsyntax2/src/ast/mod.rs +++ b/crates/libsyntax2/src/ast/mod.rs @@ -32,6 +32,12 @@ pub trait ArgListOwner<'a>: AstNode<'a> { } } +pub trait FnDefOwner<'a>: AstNode<'a> { + fn functions(self) -> Box> + 'a> { + Box::new(children(self)) + } +} + pub trait TypeParamsOwner<'a>: AstNode<'a> { fn type_param_list(self) -> Option> { child_opt(self) -- cgit v1.2.3