diff options
author | Paul Phillips <paulp@improving.org> | 2012-03-01 13:36:12 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-03-01 22:31:50 -0800 |
commit | 54b541b103f79bdfff96227eeeac1d92d68165d8 (patch) | |
tree | 27ceb751880c6aa85b3406dbf251f6458c78303f /src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala | |
parent | ee4fa5449e25bae11891f23907114ff5ea5e12b8 (diff) | |
download | scala-54b541b103f79bdfff96227eeeac1d92d68165d8.tar.gz scala-54b541b103f79bdfff96227eeeac1d92d68165d8.tar.bz2 scala-54b541b103f79bdfff96227eeeac1d92d68165d8.zip |
More consistent use of atPhase.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala b/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala index 45045b1909..595c1486b6 100644 --- a/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala +++ b/src/compiler/scala/tools/nsc/transform/ExplicitOuter.scala @@ -89,8 +89,8 @@ abstract class ExplicitOuter extends InfoTransform def outerAccessor(clazz: Symbol): Symbol = { val firstTry = clazz.info.decl(nme.expandedName(nme.OUTER, clazz)) if (firstTry != NoSymbol && firstTry.outerSource == clazz) firstTry - else clazz.info.decls find (_.outerSource == clazz) getOrElse NoSymbol - } + else findOrElse(clazz.info.decls)(_.outerSource == clazz)(NoSymbol) + } def newOuterAccessor(clazz: Symbol) = { val accFlags = SYNTHETIC | METHOD | STABLE | ( if (clazz.isTrait) DEFERRED else 0 ) val sym = clazz.newMethodSymbol(nme.OUTER, clazz.pos, accFlags) |