diff options
author | Aleksey Kladov <[email protected]> | 2018-09-03 13:10:06 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-03 13:10:06 +0100 |
commit | 4798a89a12f40af17174a160f6d6a2f1c53db8d6 (patch) | |
tree | 2a97f379f624127739188f35babfa9710b104bf4 /crates/libsyntax2/src/ast/mod.rs | |
parent | 58480b9190d8851abf7f634820188e33efed286d (diff) |
Complete params
Diffstat (limited to 'crates/libsyntax2/src/ast/mod.rs')
-rw-r--r-- | crates/libsyntax2/src/ast/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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> { | |||
32 | } | 32 | } |
33 | } | 33 | } |
34 | 34 | ||
35 | pub trait FnDefOwner<'a>: AstNode<'a> { | ||
36 | fn functions(self) -> Box<Iterator<Item=FnDef<'a>> + 'a> { | ||
37 | Box::new(children(self)) | ||
38 | } | ||
39 | } | ||
40 | |||
35 | pub trait TypeParamsOwner<'a>: AstNode<'a> { | 41 | pub trait TypeParamsOwner<'a>: AstNode<'a> { |
36 | fn type_param_list(self) -> Option<TypeParamList<'a>> { | 42 | fn type_param_list(self) -> Option<TypeParamList<'a>> { |
37 | child_opt(self) | 43 | child_opt(self) |