We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9aca2c2 + bc499ee commit b950543Copy full SHA for b950543
compiler/src/dotty/tools/dotc/interactive/Interactive.scala
@@ -247,6 +247,11 @@ object Interactive {
247
/** The reverse path to the node that closest encloses position `pos`,
248
* or `Nil` if no such path exists. If a non-empty path is returned it starts with
249
* the tree closest enclosing `pos` and ends with an element of `trees`.
250
+ *
251
+ * Note that if the given `pos` points out places for incomplete parses,
252
+ * this method returns `errorTermTree` (`Literal(Consotant(null)`).
253
254
+ * @see https://github.com/lampepfl/dotty/issues/15294
255
*/
256
def pathTo(trees: List[SourceTree], pos: SourcePosition)(using Context): List[Tree] =
257
pathTo(trees.map(_.tree), pos.span)
0 commit comments