File tree 4 files changed +4
-4
lines changed
staging/src/scala/quoted/staging
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ class Compiler {
42
42
List (new semanticdb.ExtractSemanticDB ) :: // Extract info into .semanticdb files
43
43
List (new PostTyper ) :: // Additional checks and cleanups after type checking
44
44
List (new sjs.PrepJSInterop ) :: // Additional checks and transformations for Scala.js (Scala.js only)
45
- List (new Staging ) :: // Check PCP, heal quoted types and expand macros
46
45
List (new sbt.ExtractAPI ) :: // Sends a representation of the API of classes to sbt via callbacks
47
46
List (new SetRootTree ) :: // Set the `rootTreeOrProvider` on class symbols
48
47
Nil
@@ -51,6 +50,7 @@ class Compiler {
51
50
protected def picklerPhases : List [List [Phase ]] =
52
51
List (new Pickler ) :: // Generate TASTY info
53
52
List (new Inlining ) :: // Inline and execute macros
53
+ List (new Staging ) :: // Check staging levels and heal staged types
54
54
List (new PickleQuotes ) :: // Turn quoted trees into explicit run-time data structures
55
55
Nil
56
56
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class Staging extends MacroTransform {
35
35
36
36
override def phaseName : String = Staging .name
37
37
38
- override def runsAfter : Set [String ] = Set (PostTyper .name)
38
+ override def runsAfter : Set [String ] = Set (Inlining .name)
39
39
40
40
override def allowsImplicitSearch : Boolean = true
41
41
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ class ReplCompiler extends Compiler {
35
35
List (new REPLFrontEnd ),
36
36
List (new CollectTopLevelImports ),
37
37
List (new PostTyper ),
38
- List (new Staging ),
39
38
)
40
39
41
40
def newRun (initCtx : Context , state : State ): Run = new Run (this , initCtx) {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import dotty.tools.dotc.core.Symbols._
16
16
import dotty .tools .dotc .core .Types .ExprType
17
17
import dotty .tools .dotc .quoted .PickledQuotes
18
18
import dotty .tools .dotc .transform .Splicer .checkEscapedVariables
19
- import dotty .tools .dotc .transform .{Inlining , PickleQuotes }
19
+ import dotty .tools .dotc .transform .{Inlining , Staging , PickleQuotes }
20
20
import dotty .tools .dotc .util .Spans .Span
21
21
import dotty .tools .dotc .util .{SourceFile , NoSourcePosition }
22
22
import dotty .tools .io .{Path , VirtualFile }
@@ -40,6 +40,7 @@ private class QuoteCompiler extends Compiler:
40
40
41
41
override protected def picklerPhases : List [List [Phase ]] =
42
42
List (new Inlining ) ::
43
+ List (new Staging ) ::
43
44
List (new PickleQuotes ) ::
44
45
Nil
45
46
You can’t perform that action at this time.
0 commit comments