aboutsummaryrefslogtreecommitdiff
path: root/compiler/src
diff options
context:
space:
mode:
authorliu fengyun <liu@fengy.me>2016-12-20 13:42:00 +0100
committerliu fengyun <liu@fengy.me>2016-12-20 13:42:00 +0100
commitc2bc63799199db517281935ebc3f56d29ba3c932 (patch)
treeca115a0745c27e518def2e2c452cce333d02cd18 /compiler/src
parent1d534c54b5150868818609a2055fdc11e82643fe (diff)
downloaddotty-c2bc63799199db517281935ebc3f56d29ba3c932.tar.gz
dotty-c2bc63799199db517281935ebc3f56d29ba3c932.tar.bz2
dotty-c2bc63799199db517281935ebc3f56d29ba3c932.zip
address review: rename hasOuterFlag to clsHasOuter
Diffstat (limited to 'compiler/src')
-rw-r--r--compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala b/compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala
index 16010d439..1eb12e9de 100644
--- a/compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala
+++ b/compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala
@@ -82,11 +82,11 @@ class ExplicitOuter extends MiniPhaseTransform with InfoTransformer { thisTransf
impl.existsSubTree(referencesOuter(cls, _)))
ensureOuterAccessors(cls)
- val hasOuterFlag = hasOuter(cls)
- if (hasOuterFlag || cls.mixins.exists(needsOuterIfReferenced)) {
+ val clsHasOuter = hasOuter(cls)
+ if (clsHasOuter || cls.mixins.exists(needsOuterIfReferenced)) {
val newDefs = new mutable.ListBuffer[Tree]
- if (hasOuterFlag) {
+ if (clsHasOuter) {
if (isTrait)
newDefs += DefDef(outerAccessor(cls).asTerm, EmptyTree)
else {