Skip to content

Commit

Permalink
use ceilingEntry instead of higherEntry for line mappings
Browse files Browse the repository at this point in the history
we want to include & prioritize exact matches
  • Loading branch information
jpenilla committed Sep 15, 2023
1 parent de15167 commit 28786b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private class LineMappingVisitor(
override fun visitLineNumber(line: Int, start: Label?) {
var mapped = lineMapping[line]
if (mapped == null) {
val entry = lineMapping.higherEntry(line)
val entry = lineMapping.ceilingEntry(line)
if (entry != null) {
mapped = entry.value
}
Expand Down

0 comments on commit 28786b0

Please sign in to comment.