All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dotty.tools.backend.sjs.GenSJSIR.scala Maven / Gradle / Ivy

There is a newer version: 3.6.4-RC1-bin-20241220-0bfa1af-NIGHTLY
Show newest version
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