aboutsummaryrefslogtreecommitdiff
path: root/sjs/backend/sjs/GenSJSIR.scala
diff options
context:
space:
mode:
Diffstat (limited to 'sjs/backend/sjs/GenSJSIR.scala')
-rw-r--r--sjs/backend/sjs/GenSJSIR.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/sjs/backend/sjs/GenSJSIR.scala b/sjs/backend/sjs/GenSJSIR.scala
new file mode 100644
index 000000000..819a8f0e3
--- /dev/null
+++ b/sjs/backend/sjs/GenSJSIR.scala
@@ -0,0 +1,14 @@
+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 {
+ def phaseName: String = "genSJSIR"
+
+ def run(implicit ctx: Context): Unit = {
+ new JSCodeGen().run()
+ }
+}