File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class LazyVals extends MiniPhaseTransform with IdentityDenotTransformer {
38
38
/** this map contains mutable state of transformation: OffsetDefs to be appended to companion object definitions,
39
39
* and number of bits currently used */
40
40
class OffsetInfo (var defs : List [Tree ], var ord : Int )
41
- val appendOffsetDefs = mutable.Map .empty[Name , OffsetInfo ]
41
+ val appendOffsetDefs = mutable.Map .empty[Symbol , OffsetInfo ]
42
42
43
43
override def phaseName : String = " LazyVals"
44
44
@@ -64,7 +64,7 @@ class LazyVals extends MiniPhaseTransform with IdentityDenotTransformer {
64
64
override def transformTypeDef (tree : TypeDef )(implicit ctx : Context , info : TransformerInfo ): Tree = {
65
65
if (! tree.symbol.isClass) tree
66
66
else {
67
- appendOffsetDefs.get(tree.symbol.name ) match {
67
+ appendOffsetDefs.get(tree.symbol) match {
68
68
case None => tree
69
69
case Some (data) =>
70
70
val template = tree.rhs.asInstanceOf [Template ]
@@ -296,7 +296,7 @@ class LazyVals extends MiniPhaseTransform with IdentityDenotTransformer {
296
296
var ord = 0
297
297
298
298
// compute or create appropriate offsetSymol, bitmap and bits used by current ValDef
299
- appendOffsetDefs.get(companion.name.moduleClassName ) match {
299
+ appendOffsetDefs.get(companion.moduleClass ) match {
300
300
case Some (info) =>
301
301
val flagsPerLong = 64 / RLazyVals .BITS_PER_LAZY_VAL
302
302
info.ord += 1
You can’t perform that action at this time.
0 commit comments