File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,10 @@ class Constructors extends MiniPhaseTransform with SymTransformer { thisTransfor
80
80
// (2) If the parameter accessor reference was to an alias getter,
81
81
// drop the () when replacing by the parameter.
82
82
object intoConstr extends TreeMap {
83
- private var excluded : FlagSet = _
84
83
override def transform (tree : Tree )(implicit ctx : Context ): Tree = tree match {
85
84
case Ident (_) | Select (This (_), _) =>
86
85
var sym = tree.symbol
87
- if (sym is (ParamAccessor , butNot = excluded )) sym = sym.subst(accessors, paramSyms)
86
+ if (sym is (ParamAccessor , butNot = Mutable )) sym = sym.subst(accessors, paramSyms)
88
87
if (sym.owner.isConstructor) ref(sym).withPos(tree.pos) else tree
89
88
case Apply (fn, Nil ) =>
90
89
val fn1 = transform(fn)
@@ -95,8 +94,7 @@ class Constructors extends MiniPhaseTransform with SymTransformer { thisTransfor
95
94
if (noDirectRefsFrom(tree)) tree else super .transform(tree)
96
95
}
97
96
98
- def apply (tree : Tree , prevOwner : Symbol , inSuperCall : Boolean = false )(implicit ctx : Context ): Tree = {
99
- this .excluded = if (inSuperCall) EmptyFlags else Mutable
97
+ def apply (tree : Tree , prevOwner : Symbol )(implicit ctx : Context ): Tree = {
100
98
transform(tree).changeOwnerAfter(prevOwner, constr.symbol, thisTransform)
101
99
}
102
100
}
You can’t perform that action at this time.
0 commit comments