diff options
author | Martin Odersky <odersky@gmail.com> | 2014-09-06 11:38:55 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-09-06 11:39:45 +0200 |
commit | c3078b12582773e3a9bb356e168fb646ec6733b1 (patch) | |
tree | 26a03cbee889413c4300eab15fe27fa07ef8322d /src/dotty/tools/dotc/transform/ExplicitOuter.scala | |
parent | b58b90683652e1b6e2c32412f0a03ba614b61b33 (diff) | |
download | dotty-c3078b12582773e3a9bb356e168fb646ec6733b1.tar.gz dotty-c3078b12582773e3a9bb356e168fb646ec6733b1.tar.bz2 dotty-c3078b12582773e3a9bb356e168fb646ec6733b1.zip |
Make foreach/exsists into tree infix methods
foreachSubTree and existsSubTree are now infix methods. Streamlines their use
somewhat.
Diffstat (limited to 'src/dotty/tools/dotc/transform/ExplicitOuter.scala')
-rw-r--r-- | src/dotty/tools/dotc/transform/ExplicitOuter.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/ExplicitOuter.scala b/src/dotty/tools/dotc/transform/ExplicitOuter.scala index d13598819..f910f49d0 100644 --- a/src/dotty/tools/dotc/transform/ExplicitOuter.scala +++ b/src/dotty/tools/dotc/transform/ExplicitOuter.scala @@ -85,7 +85,7 @@ class ExplicitOuter extends MiniPhaseTransform with InfoTransformer { thisTransf val isTrait = cls.is(Trait) if (needsOuterIfReferenced(cls) && !needsOuterAlways(cls) && - existsSubTreeOf(impl)(referencesOuter(cls, _))) + impl.existsSubTree(referencesOuter(cls, _))) newOuterAccessors(cls).foreach(_.enteredAfter(thisTransformer)) if (hasOuter(cls)) { val newDefs = new mutable.ListBuffer[Tree] |