File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ class TreeChecker extends Phase with SymTransformer {
130
130
assert(ctx.typerState.constraint.domainLambdas.isEmpty,
131
131
i " non-empty constraint at end of $fusedPhase: ${ctx.typerState.constraint}, ownedVars = ${ctx.typerState.ownedVars.toList}%, % " )
132
132
assertSelectWrapsNew(ctx.compilationUnit.tpdTree)
133
- TreeNodeChecker .run (ctx.compilationUnit.tpdTree)
133
+ TreeNodeChecker .traverse (ctx.compilationUnit.tpdTree)
134
134
}
135
135
136
136
val checkingCtx = ctx
@@ -651,7 +651,6 @@ object TreeChecker {
651
651
/** Check that the tree only contains legal children trees */
652
652
object TreeNodeChecker extends untpd.TreeTraverser :
653
653
import untpd ._
654
- def run (tree : Tree )(using Context ) = if ! tree.isInstanceOf [TypeTree ] then traverse(tree)
655
654
def traverse (tree : Tree )(using Context ) = tree match
656
655
case t : TypeTree => assert(assertion = false , t)
657
656
case t @ TypeApply (fun, _targs) => traverse(fun)
You can’t perform that action at this time.
0 commit comments