Skip to content

Commit 94a2727

Browse files
committed
Document TreeInfo's appliedCore
1 parent 7158030 commit 94a2727

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/src/dotty/tools/dotc/ast/TreeInfo.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ trait TreeInfo[T <: Untyped] { self: Trees.Instance[T] =>
330330
case _ => p(tree)
331331
}
332332

333+
/** The tree stripped of the possibly nested applications (term and type).
334+
* The original tree if it's not an application.
335+
*/
333336
def appliedCore(tree: Tree): Tree = tree match {
334337
case Apply(fn, _) => appliedCore(fn)
335338
case TypeApply(fn, _) => appliedCore(fn)

0 commit comments

Comments
 (0)