Skip to content

Commit 3bb1ee3

Browse files
committed
print: name and reuse inlined call site debuginfo "scopes".
1 parent 307cb10 commit 3bb1ee3

File tree

2 files changed

+848
-198
lines changed

2 files changed

+848
-198
lines changed

src/func_at.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ impl<'a> Iterator for FuncAt<'a, EntityListIter<Node>> {
6868
}
6969
}
7070

71+
impl DoubleEndedIterator for FuncAt<'_, EntityListIter<Node>> {
72+
fn next_back(&mut self) -> Option<Self::Item> {
73+
let (prev, rest) = self.position.split_last(self.nodes)?;
74+
self.position = rest;
75+
Some(self.at(prev))
76+
}
77+
}
78+
7179
impl<'a> FuncAt<'a, Node> {
7280
pub fn def(self) -> &'a NodeDef {
7381
&self.nodes[self.position]

0 commit comments

Comments
 (0)