We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 658edd7 commit aa9115dCopy full SHA for aa9115d
compiler/src/dotty/tools/dotc/ast/TreeInfo.scala
@@ -142,9 +142,9 @@ trait TreeInfo[T <: Untyped] { self: Trees.Instance[T] =>
142
143
/** All term arguments of an application in a single flattened list */
144
def allTermArguments(tree: Tree): List[Tree] = unsplice(tree) match {
145
- case Apply(fn, args) => allArguments(fn) ::: args
146
- case TypeApply(fn, args) => allArguments(fn)
147
- case Block(_, expr) => allArguments(expr)
+ case Apply(fn, args) => allTermArguments(fn) ::: args
+ case TypeApply(fn, args) => allTermArguments(fn)
+ case Block(_, expr) => allTermArguments(expr)
148
case _ => Nil
149
}
150
0 commit comments