@@ -7,7 +7,7 @@ import typer.{FrontEnd, RefChecks}
7
7
import Phases .Phase
8
8
import transform ._
9
9
import dotty .tools .backend .jvm .{CollectSuperCalls , GenBCode }
10
- import dotty .tools .backend . sjs
10
+ import dotty .tools .backend
11
11
import dotty .tools .dotc .transform .localopt .StringInterpolatorOpt
12
12
13
13
/** The central class of the dotc compiler. The job of a compiler is to create
@@ -72,7 +72,7 @@ class Compiler {
72
72
List (new ElimOpaque , // Turn opaque into normal aliases
73
73
new TryCatchPatterns , // Compile cases in try/catch
74
74
new PatternMatcher , // Compile pattern matches
75
- new ExplicitJSClasses , // Make all JS classes explicit (Scala.js only)
75
+ new sjs. ExplicitJSClasses , // Make all JS classes explicit (Scala.js only)
76
76
new ExplicitOuter , // Add accessors to outer classes from nested ones.
77
77
new ExplicitSelf , // Make references to non-trivial self types explicit as casts
78
78
new StringInterpolatorOpt , // Optimizes raw and s string interpolators by rewriting them to string concatentations
@@ -122,14 +122,14 @@ class Compiler {
122
122
new ExpandPrivate , // Widen private definitions accessed from nested classes
123
123
new RestoreScopes , // Repair scopes rendered invalid by moving definitions in prior phases of the group
124
124
new SelectStatic , // get rid of selects that would be compiled into GetStatic
125
- new sjs.JUnitBootstrappers , // Generate JUnit-specific bootstrapper classes for Scala.js (not enabled by default)
125
+ new backend. sjs.JUnitBootstrappers , // Generate JUnit-specific bootstrapper classes for Scala.js (not enabled by default)
126
126
new CollectSuperCalls ) :: // Find classes that are called with super
127
127
Nil
128
128
129
129
/** Generate the output of the compilation */
130
130
protected def backendPhases : List [List [Phase ]] =
131
- List (new sjs.GenSJSIR ) :: // Generate .sjsir files for Scala.js (not enabled by default)
132
- List (new GenBCode ) :: // Generate JVM bytecode
131
+ List (new backend. sjs.GenSJSIR ) :: // Generate .sjsir files for Scala.js (not enabled by default)
132
+ List (new GenBCode ) :: // Generate JVM bytecode
133
133
Nil
134
134
135
135
var runId : Int = 1
0 commit comments