aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast.rs
diff options
context:
space:
mode:
authorVille Penttinen <[email protected]>2019-03-31 08:56:48 +0100
committerVille Penttinen <[email protected]>2019-03-31 08:56:48 +0100
commit55dcdb7d094f473c73f87ecf997b24f8e35f2a5e (patch)
tree996d113c7be91d4f0f96abc7764fd2d5f14ca921 /crates/ra_syntax/src/ast.rs
parent245c0d85840b3ef6e969e1a6786bdfb5285b0cea (diff)
Add trait ast::TypeBoundsOwner
Diffstat (limited to 'crates/ra_syntax/src/ast.rs')
-rw-r--r--crates/ra_syntax/src/ast.rs6
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
113pub trait TypeBoundsOwner: AstNode {
114 fn type_bound_list(&self) -> Option<&TypeBoundList> {
115 child_opt(self)
116 }
117}
118
113pub trait AttrsOwner: AstNode { 119pub trait AttrsOwner: AstNode {
114 fn attrs(&self) -> AstChildren<Attr> { 120 fn attrs(&self) -> AstChildren<Attr> {
115 children(self) 121 children(self)