diff options
Diffstat (limited to 'crates/ra_syntax/src/ast.rs')
-rw-r--r-- | crates/ra_syntax/src/ast.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs index a6fac07c4..4fddc00ea 100644 --- a/crates/ra_syntax/src/ast.rs +++ b/crates/ra_syntax/src/ast.rs | |||
@@ -110,6 +110,12 @@ pub trait TypeParamsOwner: AstNode { | |||
110 | } | 110 | } |
111 | } | 111 | } |
112 | 112 | ||
113 | pub trait TypeBoundsOwner: AstNode { | ||
114 | fn type_bound_list(&self) -> Option<&TypeBoundList> { | ||
115 | child_opt(self) | ||
116 | } | ||
117 | } | ||
118 | |||
113 | pub trait AttrsOwner: AstNode { | 119 | pub trait AttrsOwner: AstNode { |
114 | fn attrs(&self) -> AstChildren<Attr> { | 120 | fn attrs(&self) -> AstChildren<Attr> { |
115 | children(self) | 121 | children(self) |