Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Commit

Permalink
Use clearer val names
Browse files Browse the repository at this point in the history
  • Loading branch information
mlangc committed Mar 15, 2015
1 parent 9ad95ea commit 20cf3d9
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -96,14 +96,14 @@ trait Selections extends TreeTraverser with common.PimpedTrees {
* See #1002392 if you wonder why we need this
*/
private def eventuallyFixModifierPositionsForLazyVals(t: Option[SymTree]): Option[SymTree] = t.map {
case lDef: DefDef if lDef.mods.isLazy && lDef.mods.positions.isEmpty =>
case dd: DefDef if dd.mods.isLazy && dd.mods.positions.isEmpty =>
root.foreach {
case lVal: ValDef if lDef.mods.isLazy && !lVal.mods.positions.isEmpty && lVal.pos.point == lDef.pos.point =>
lDef.mods.setPositions(lVal.mods.positions)
case ld: ValDef if dd.mods.isLazy && !ld.mods.positions.isEmpty && ld.pos.point == dd.pos.point =>
dd.mods.setPositions(ld.mods.positions)
case _ => ()
}

lDef
dd
case other => other
}

Expand Down

0 comments on commit 20cf3d9

Please sign in to comment.