@@ -65,7 +65,7 @@ abstract class SuperAccessors extends transform.Transform with transform.TypingT
6565 storeAccessorDefinition(clazz, DefDef (acc, EmptyTree ))
6666 acc
6767 }
68-
68+
6969 atPos(sel.pos)(Select (gen.mkAttributedThis(clazz), superAcc) setType sel.tpe)
7070 }
7171
@@ -131,20 +131,20 @@ abstract class SuperAccessors extends transform.Transform with transform.TypingT
131131 // we need an accessor to get to a super on an outer thing, but only if we can't call name more directly on
132132 // a trait implementation class. So this complicated condition is leaving alone cases where we don't need to do
133133 // anything special (i.e. we're getting a direct super class) or where a later transform will inject a call to
134- // a trait implementation method directly.
134+ // a trait implementation method directly.
135135 //
136- // SI-6536 has more discussion about how this works.
136+ // SI-6536 has more discussion about how this works.
137137 //
138- // So, we're looking for items of the form clazz.super[mix].name (or clazz.super.name wich is seen as
138+ // So, we're looking for items of the form clazz.super[mix].name (or clazz.super.name wich is seen as
139139 // clazz.super[EMPTY].name with some limitations. First, name has to be a term rather than a type.
140- // Then there are a couple of cases.
140+ // Then there are a couple of cases.
141141 def requiresAccessor = name.isTermName && (mix match {
142142 // If mix is empty then we only need an accessor if clazz is a trait, it's not this current class,
143- // or the validCurentOwner setting is false...which...ugh, is a mess.
144- case tpnme.EMPTY => clazz.isTrait || clazz != currentClass || ! validCurrentOwner
143+ // or the validCurentOwner setting is false...which...ugh, is a mess.
144+ case tpnme.EMPTY => clazz.isTrait || clazz != currentClass || ! validCurrentOwner
145145 // If the mix is set then if it refers to a class and the clazz part isn't the current class
146146 // it's not just super[mix].name then we need to generate an accessor.
147- case _ => clazz != currentClass && ! mixTpeIsTrait
147+ case _ => clazz != currentClass && ! mixTpeIsTrait
148148 })
149149
150150 if (requiresAccessor) ensureAccessor(sel)
@@ -232,7 +232,7 @@ abstract class SuperAccessors extends transform.Transform with transform.TypingT
232232 parent.info.decls filterNot (x => x.isPrivate || x.hasLocalFlag) foreach { m2 =>
233233 if (sym.name == m2.name && m2.isGetter && m2.accessed.isMutable) {
234234 unit.warning(sel.pos,
235- sym.accessString + " " + sym. fullLocationString + " shadows mutable " + m2.name
235+ sym.fullLocationString + " shadows mutable " + m2.name
236236 + " inherited from " + m2.owner + " . Changes to " + m2.name + " will not be visible within "
237237 + sym.owner + " - you may want to give them distinct names."
238238 )
@@ -263,7 +263,7 @@ abstract class SuperAccessors extends transform.Transform with transform.TypingT
263263 // FIXME - this should be unified with needsProtectedAccessor, but some
264264 // subtlety which presently eludes me is foiling my attempts.
265265 val shouldEnsureAccessor = (
266- currentClass.isTrait
266+ currentClass.isTrait
267267 && sym.isProtected
268268 && sym.enclClass != currentClass
269269 && ! sym.owner.isTrait
0 commit comments