mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 04:48:13 +00:00
Add fn parent(self, db) -> GenericDef to hir::TypeParam
This commit is contained in:
parent
df50136c23
commit
90f392108c
1 changed files with 4 additions and 0 deletions
|
|
@ -4150,6 +4150,10 @@ impl TypeParam {
|
|||
self.merge().name(db)
|
||||
}
|
||||
|
||||
pub fn parent(self, _db: &dyn HirDatabase) -> GenericDef {
|
||||
self.id.parent().into()
|
||||
}
|
||||
|
||||
pub fn module(self, db: &dyn HirDatabase) -> Module {
|
||||
self.id.parent().module(db).into()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue