Skip to content

Commit

Permalink
Add fn index() accessor for hir::Param
Browse files Browse the repository at this point in the history
  • Loading branch information
regexident committed Mar 5, 2024
1 parent 1afeea8 commit bf14131
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/hir/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2112,6 +2112,10 @@ impl Param {
self.func
}

pub fn index(&self) -> usize {
self.idx
}

pub fn ty(&self) -> &Type {
&self.ty
}
Expand Down

0 comments on commit bf14131

Please sign in to comment.