File tree 3 files changed +9
-0
lines changed
compiler/src/dotty/tools/dotc
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ class ExtractAPI extends Phase {
46
46
super .isRunnable && (ctx.sbtCallback != null || forceRun)
47
47
}
48
48
49
+ // Check no needed. Does not transform trees
50
+ override def isCheckable : Boolean = false
51
+
49
52
// SuperAccessors need to be part of the API (see the scripted test
50
53
// `trait-super` for an example where this matters), this is only the case
51
54
// after `PostTyper` (unlike `ExtractDependencies`, the simplication to trees
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ class ExtractDependencies extends Phase {
54
54
super .isRunnable && (ctx.sbtCallback != null || forceRun)
55
55
}
56
56
57
+ // Check no needed. Does not transform trees
58
+ override def isCheckable : Boolean = false
59
+
57
60
// This phase should be run directly after `Frontend`, if it is run after
58
61
// `PostTyper`, some dependencies will be lost because trees get simplified.
59
62
// See the scripted test `constants` for an example where this matters.
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ class SetRootTree extends Phase {
12
12
override def isRunnable (implicit ctx : Context ) =
13
13
super .isRunnable && ctx.settings.YretainTrees .value
14
14
15
+ // Check no needed. Does not transform trees
16
+ override def isCheckable : Boolean = false
17
+
15
18
override def run (implicit ctx : Context ): Unit = {
16
19
val tree = ctx.compilationUnit.tpdTree
17
20
traverser.traverse(tree)
You can’t perform that action at this time.
0 commit comments