File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,6 @@ object Inliner {
151
151
def dropInlined (inlined : tpd.Inlined )(implicit ctx : Context ): Tree = {
152
152
if (enclosingInlineds.nonEmpty) inlined // Remove in the outer most inlined call
153
153
else {
154
- // Position used for any tree that was inlined (including recursive inlines)
155
154
val inlinedAtPos = inlined.call.pos
156
155
157
156
/** Removes all Inlined trees, replacing them with blocks.
@@ -166,7 +165,8 @@ object Inliner {
166
165
val transformed = super .transform(tree)
167
166
enclosingInlineds match {
168
167
case call :: _ if call.symbol.sourceFile != ctx.owner.sourceFile =>
169
- // reposition tree inlined from some other file
168
+ // Until we implement JSR-45, we cannot represent in output positions in other source files.
169
+ // So, reposition inlined code from other files with the call position:
170
170
transformed.withPos(inlinedAtPos)
171
171
case _ => transformed
172
172
}
You can’t perform that action at this time.
0 commit comments