aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/ast/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/ast/mod.rs')
-rw-r--r--crates/libsyntax2/src/ast/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/ast/mod.rs b/crates/libsyntax2/src/ast/mod.rs
index 49e283f5e..274996171 100644
--- a/crates/libsyntax2/src/ast/mod.rs
+++ b/crates/libsyntax2/src/ast/mod.rs
@@ -26,6 +26,12 @@ pub trait LoopBodyOwner<'a>: AstNode<'a> {
26 } 26 }
27} 27}
28 28
29pub trait ArgListOwner<'a>: AstNode<'a> {
30 fn arg_list(self) -> Option<ArgList<'a>> {
31 child_opt(self)
32 }
33}
34
29pub trait TypeParamsOwner<'a>: AstNode<'a> { 35pub trait TypeParamsOwner<'a>: AstNode<'a> {
30 fn type_param_list(self) -> Option<TypeParamList<'a>> { 36 fn type_param_list(self) -> Option<TypeParamList<'a>> {
31 child_opt(self) 37 child_opt(self)