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.
pathTo
1 parent 66905e7 commit f33fcb9Copy full SHA for f33fcb9
compiler/src/dotty/tools/dotc/ast/NavigateAST.scala
@@ -63,9 +63,9 @@ object NavigateAST {
63
pathTo(span, List(ctx.compilationUnit.untpdTree))
64
65
66
- /** The reverse path from node `from` to the node that closest encloses `span`,
+ /** The reverse path from any node in `from` to the node that closest encloses `span`,
67
* or `Nil` if no such path exists. If a non-empty path is returned it starts with
68
- * the node closest enclosing `span` and ends with `from`.
+ * the node closest enclosing `span` and ends with one of the nodes in `from`.
69
*
70
* @param skipZeroExtent If true, skip over zero-extent nodes in the search. These nodes
71
* do not correspond to code the user wrote since their start and
0 commit comments