diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index ffdf169bbb5..5eed7ecd5b2 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs @@ -2112,6 +2112,10 @@ impl Param { self.func } + pub fn index(&self) -> usize { + self.idx + } + pub fn ty(&self) -> &Type { &self.ty }