bug icon indicating copy to clipboard operation
bug copied to clipboard

CompilerControl.askTypeAt(pos) should return the chain of parents containing pos, and not only the innermost tree

Open scabug opened this issue 11 years ago • 2 comments

Based on a this discussion related to both #5064 #8125, it was suggested by Iulian that CompilerControl.askTypeAt(pos) would be changed so that it returns the whole chain of parents (with an opaque range position) that include the passed pos.

Benefits:

  1. No need to create opaque range position for Trees that should really have a transparent positions. This discussion should prove the point.

  2. The solution is general enough, and will reduce code duplication, as there are several places in the IDE codebase where we need to access the parent of a Tree.

scabug avatar Jan 10 '14 14:01 scabug

Imported From: https://issues.scala-lang.org/browse/SI-8136?orig=1 Reporter: @dotta Affected Versions: 2.11.0-M7

scabug avatar Jan 10 '14 14:01 scabug

@dotta said: https://github.com/scala/scala/pull/3358

scabug avatar Jan 13 '14 11:01 scabug