File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
compiler/src/dotty/tools/dotc/core/tasty Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1316,7 +1316,10 @@ class TreeUnpickler(reader: TastyReader,
1316
1316
*/
1317
1317
def sourceChangeContext (addr : Addr = currentAddr)(implicit ctx : Context ): Context = {
1318
1318
val path = sourcePathAt(addr)
1319
- if (path.nonEmpty) ctx.withSource(ctx.getSource(path))
1319
+ if (path.nonEmpty) {
1320
+ pickling.println(i " source change at $addr: $path" )
1321
+ ctx.withSource(ctx.getSource(path))
1322
+ }
1320
1323
else ctx
1321
1324
}
1322
1325
@@ -1332,7 +1335,7 @@ class TreeUnpickler(reader: TastyReader,
1332
1335
/** Set position of `tree` at given `addr`. */
1333
1336
def setPos [T <: untpd.Tree ](addr : Addr , tree : T )(implicit ctx : Context ): tree.type = {
1334
1337
val pos = posAt(addr)
1335
- if (pos.exists) tree.setPosUnchecked(pos)
1338
+ if (pos.exists) tree.setPosUnchecked(pos, ctx.source.file )
1336
1339
tree
1337
1340
}
1338
1341
}
You can’t perform that action at this time.
0 commit comments