Skip to content

Commit 59c39db

Browse files
Remove stray [DEBUG-TMPL] debug prints from ScalaTreeVisitor (#7439)
These `System.err.println` calls were left behind as instrumentation and flood stderr during `mod build` on any Scala sources.
1 parent b30c1e0 commit 59c39db

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

rewrite-scala/src/main/scala/org/openrewrite/scala/internal/ScalaTreeVisitor.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)