We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a34d8d6 commit adf7e3fCopy full SHA for adf7e3f
compiler/src/dotty/tools/dotc/core/Symbols.scala
@@ -486,6 +486,12 @@ object Symbols extends SymUtils {
486
mySource = ctx.getSource(file)
487
else
488
mySource = defn.patchSource(this)
489
+ if !mySource.exists then
490
+ val compUnitInfo = compilationUnitInfo
491
+ if compUnitInfo != null then
492
+ compUnitInfo.tastyInfo.flatMap(_.attributes.sourceFile) match
493
+ case Some(path) => mySource = ctx.getSource(path)
494
+ case _ =>
495
if !mySource.exists then
496
mySource = atPhaseNoLater(flattenPhase) {
497
denot.topLevelClass.unforcedAnnotation(defn.SourceFileAnnot) match
0 commit comments