dotty.tools.backend.sjs.GenSJSIR.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala3-compiler_3 Show documentation
Show all versions of scala3-compiler_3 Show documentation
scala3-compiler-bootstrapped
package dotty.tools.backend.sjs
import dotty.tools.dotc.core.*
import Contexts.*
import Phases.*
/** Generates Scala.js IR files for the compilation unit. */
class GenSJSIR extends Phase {
override def phaseName: String = GenSJSIR.name
override def description: String = GenSJSIR.description
override def isEnabled(using Context): Boolean =
ctx.settings.scalajs.value
override def isRunnable(using Context): Boolean =
super.isRunnable && !ctx.usedBestEffortTasty
def run(using Context): Unit =
new JSCodeGen().run()
}
object GenSJSIR:
val name: String = "genSJSIR"
val description: String = "generate .sjsir files for Scala.js"
© 2015 - 2025 Weber Informatics LLC | Privacy Policy