File tree Expand file tree Collapse file tree
rewrite-scala/src/main/scala/org/openrewrite/scala/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4297,9 +4297,7 @@ class ScalaTreeVisitor(
42974297 val visitedSpans = new java.util.HashSet [Int ]()
42984298 // Sort by source position to preserve source order
42994299 val sortedBody = template.body.sortBy(s => if (s.span.exists) s.span.start else Int .MaxValue )
4300- System .err.println(s " [DEBUG-TMPL] template.body has ${sortedBody.length} entries " )
43014300 for (stat <- sortedBody) {
4302- System .err.println(s " [DEBUG-TMPL] stat class= ${stat.getClass.getSimpleName} span= ${stat.span} isSynthetic= ${stat.span.isSynthetic} text= ${stat.toString.take(100 )}" )
43034301 val isSyntheticStat = stat.span.isSynthetic || {
43044302 def hasTripleQ (t : Trees .Tree [? ]): Boolean = t match {
43054303 case sel : Trees .Select [? ] => sel.name.toString == " ???" || sel.name.toString == " $qmark$qmark$qmark" || hasTripleQ(sel.qualifier)
You can’t perform that action at this time.
0 commit comments