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.
1 parent 6e70461 commit 4e10b72Copy full SHA for 4e10b72
src/dotty/tools/dotc/ast/NavigateAST.scala
@@ -17,7 +17,12 @@ object NavigateAST {
17
case (utree: untpd.Tree) :: _ =>
18
utree
19
case _ =>
20
- throw new Error(i"no untyped tree for $tree, best matching path =\n${untypedPath(tree, exactMatch = false)}%\n====\n%")
+ val loosePath = untypedPath(tree, exactMatch = false)
21
+ throw new
22
+ Error(i"""no untyped tree for $tree, pos = ${tree.pos}, envelope = ${tree.envelope}
23
+ |best matching path =\n$loosePath%\n====\n%
24
+ |path positions = ${loosePath.map(_.pos)}
25
+ |path envelopes = ${loosePath.map(_.envelope)}""".stripMargin)
26
}
27
28
/** The reverse path of untyped trees starting with a tree that closest matches
0 commit comments