Skip to content

Commit bf14131

Browse files
committed
Add fn index() accessor for hir::Param
1 parent 1afeea8 commit bf14131

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/hir/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2112,6 +2112,10 @@ impl Param {
21122112
self.func
21132113
}
21142114

2115+
pub fn index(&self) -> usize {
2116+
self.idx
2117+
}
2118+
21152119
pub fn ty(&self) -> &Type {
21162120
&self.ty
21172121
}

0 commit comments

Comments
 (0)