File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import SymUtils._
19
19
import scala .collection .mutable .ListBuffer
20
20
import dotty .tools .dotc .core .Denotations .SingleDenotation
21
21
import dotty .tools .dotc .core .SymDenotations .SymDenotation
22
- import dotty .tools .dotc .core .DenotTransformers .DenotTransformer
22
+ import dotty .tools .dotc .core .DenotTransformers .{ IdentityDenotTransformer , DenotTransformer }
23
23
24
24
class LazyValTranformContext {
25
25
@@ -35,7 +35,7 @@ class LazyValTranformContext {
35
35
class OffsetInfo (var defs : List [Tree ], var ord : Int )
36
36
val appendOffsetDefs = mutable.Map .empty[Name , OffsetInfo ]
37
37
38
- class LazyValsTransform extends MiniPhaseTransform with DenotTransformer {
38
+ class LazyValsTransform extends MiniPhaseTransform with IdentityDenotTransformer {
39
39
40
40
override def phaseName : String = " LazyVals"
41
41
@@ -51,10 +51,6 @@ class LazyValTranformContext {
51
51
* before this phase starts processing same tree */
52
52
// override def ensureAfter: Set[String] = Set("mixin")
53
53
54
- def transform (ref : SingleDenotation )(implicit ctx : Context ): SingleDenotation = {
55
- ref
56
- }
57
-
58
54
override def transformValDef (tree : ValDef )(implicit ctx : Context , info : TransformerInfo ): Tree = {
59
55
if (! (tree.mods is Flags .Lazy ) || (tree.mods is Flags .ModuleVal )) tree
60
56
else {
You can’t perform that action at this time.
0 commit comments