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 7158030 commit 94a2727Copy full SHA for 94a2727
compiler/src/dotty/tools/dotc/ast/TreeInfo.scala
@@ -330,6 +330,9 @@ trait TreeInfo[T <: Untyped] { self: Trees.Instance[T] =>
330
case _ => p(tree)
331
}
332
333
+ /** The tree stripped of the possibly nested applications (term and type).
334
+ * The original tree if it's not an application.
335
+ */
336
def appliedCore(tree: Tree): Tree = tree match {
337
case Apply(fn, _) => appliedCore(fn)
338
case TypeApply(fn, _) => appliedCore(fn)
0 commit comments