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 0d1f4a5 commit a667ac3Copy full SHA for a667ac3
compiler/src/dotty/tools/dotc/ast/TreeInfo.scala
@@ -136,9 +136,9 @@ trait TreeInfo[T <: Untyped] { self: Trees.Instance[T] =>
136
137
/** All term arguments of an application in a single flattened list */
138
def allTermArguments(tree: Tree): List[Tree] = unsplice(tree) match {
139
- case Apply(fn, args) => allArguments(fn) ::: args
140
- case TypeApply(fn, args) => allArguments(fn)
141
- case Block(_, expr) => allArguments(expr)
+ case Apply(fn, args) => allTermArguments(fn) ::: args
+ case TypeApply(fn, args) => allTermArguments(fn)
+ case Block(_, expr) => allTermArguments(expr)
142
case _ => Nil
143
}
144
0 commit comments