Better use [Locator](https://github.com/scala/scala/blob/2.10.x/src/compiler/scala/tools/nsc/interactive/RangePositions.scala#L257). It descends faster by going down the tree towards the leaf that contains `pos`, instead of enumerating all the AST.