pub const InlineeSourceLocationIterator = struct lines: []*align(1) const pdb.InlineeSourceLineThe iterator assumes that all source lines in the slice are associated with the same inlinee, and that it is sorted by file, then line number.
pub fn next(iter: *InlineeSourceLocationIterator) ?*align(1) const pdb.InlineeSourceLine692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712pub const InlineeSourceLocationIterator = struct {
/// The iterator assumes that all source lines in the slice are associated
/// with the same inlinee, and that it is sorted by file, then line number.
lines: []*align(1) const pdb.InlineeSourceLine,
pub const empty: InlineeSourceLocationIterator = .{ .lines = &.{} };
pub fn next(iter: *InlineeSourceLocationIterator) ?*align(1) const pdb.InlineeSourceLine {
if (iter.lines.len == 0) return null;
const line = iter.lines[0];
iter.lines = iter.lines[1..];
// Filter out duplicate entries
while (iter.lines.len != 0 and
iter.lines[0].file_id == line.file_id and
iter.lines[0].source_line_num == line.source_line_num)
{
iter.lines = iter.lines[1..];
}
return line;
}
}