File tree 1 file changed +5
-0
lines changed
compiler/src/dotty/tools/backend/jvm
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import dotty.tools.dotc.CompilationUnit
4
4
import dotty .tools .dotc .core .Phases .Phase
5
5
import dotty .tools .dotc .report
6
6
import dotty .tools .dotc .core ._
7
+ import dotty .tools .dotc .interfaces .CompilerCallback
7
8
import Contexts ._
8
9
import Symbols ._
9
10
import dotty .tools .io ._
@@ -70,6 +71,10 @@ class GenBCode extends Phase { self =>
70
71
// In Scala 3 we don't perform backend optimizations and though always post process without the delay
71
72
// https://github.com/scala/scala/pull/6057
72
73
postProcessor.postProcessAndSendToDisk(generated)
74
+ (ctx.compilerCallback: CompilerCallback | Null ) match {
75
+ case cb : CompilerCallback => cb.onSourceCompiled(ctx.source)
76
+ case null => ()
77
+ }
73
78
74
79
override def runOn (units : List [CompilationUnit ])(using ctx: Context ): List [CompilationUnit ] = {
75
80
try super .runOn(units)
You can’t perform that action at this time.
0 commit comments