HasGenericArgs syntax trait

This commit is contained in:
Lukas Wirth 2024-07-07 11:00:28 +02:00
parent 6c8c49b01b
commit c08d419fba
26 changed files with 83 additions and 41 deletions

View file

@ -52,6 +52,11 @@ pub trait HasGenericParams: AstNode {
support::child(self.syntax())
}
}
pub trait HasGenericArgs: AstNode {
fn generic_arg_list(&self) -> Option<ast::GenericArgList> {
support::child(self.syntax())
}
}
pub trait HasTypeBounds: AstNode {
fn type_bound_list(&self) -> Option<ast::TypeBoundList> {