Skip to content

Commit

Permalink
Fix typo in allTermArguments (scala#21836)
Browse files Browse the repository at this point in the history
  • Loading branch information
smarter authored Oct 25, 2024
2 parents 31e7359 + fcfa6b0 commit 91ef921
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions compiler/src/dotty/tools/dotc/ast/TreeInfo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ trait TreeInfo[T <: Untyped] { self: Trees.Instance[T] =>

/** All term arguments of an application in a single flattened list */
def allTermArguments(tree: Tree): List[Tree] = unsplice(tree) match {
case Apply(fn, args) => allArguments(fn) ::: args
case TypeApply(fn, args) => allArguments(fn)
case Block(_, expr) => allArguments(expr)
case Apply(fn, args) => allTermArguments(fn) ::: args
case TypeApply(fn, args) => allTermArguments(fn)
case Block(_, expr) => allTermArguments(expr)
case _ => Nil
}

Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/transform/TreeChecker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ object TreeChecker {
private[TreeChecker] def isValidJVMMethodName(name: Name): Boolean = name.toString.forall(isValidJVMMethodChar)


class Checker(phasesToCheck: Seq[Phase]) extends ReTyper with Checking {
class Checker(phasesToCheck: Seq[Phase]) extends ReTyper {
import ast.tpd.*

protected val nowDefinedSyms = util.HashSet[Symbol]()
Expand Down

0 comments on commit 91ef921

Please sign in to comment.