Skip to content

Commit 68fee16

Browse files
Kordyjananatoliykmetyuk
authored andcommitted
Filter out information about inlining in the same file
1 parent 2a81c3e commit 68fee16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/backend/jvm/InlinedSourceMaps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ object InlinedSourceMaps:
6767

6868
class RequestCollector(enclosingFile: SourceFile) extends TreeTraverser:
6969
override def traverse(tree: Tree)(using Context): Unit =
70-
if tree.source != enclosingFile then
70+
if tree.source != enclosingFile && tree.source != cunit.source then
7171
tree.getAttachment(InliningPosition) match
7272
case Some(targetPos) =>
7373
val firstFakeLine = allocate(tree.sourcePos)

0 commit comments

Comments
 (0)