Skip to content

Commit 20f3e77

Browse files
committed
Rename method to align with change
1 parent 0123ff1 commit 20f3e77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/src/scala/tasty/util/ShowSourceCode.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,13 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
327327
printTree(rhs)
328328

329329
case Term.Block(stats0, expr) =>
330-
def isLoopEntryPoint(tree: Tree): Boolean = tree match {
330+
def shouldNotBePrinted(tree: Tree): Boolean = tree match {
331331
case Term.Apply(Term.Ident("while$" | "doWhile$"), _) => true
332332
case tree @ ValDef(_, _, _) => tree.flags.isObject
333333
case _ => false
334334
}
335335

336-
val stats = stats0.filterNot(isLoopEntryPoint)
336+
val stats = stats0.filterNot(shouldNotBePrinted)
337337

338338
expr match {
339339
case Term.Lambda(_, _) =>
@@ -347,7 +347,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
347347
case _ =>
348348
this += "{"
349349
val (stats1, expr1) =
350-
if (isLoopEntryPoint(expr)) (stats.init, stats.last)
350+
if (shouldNotBePrinted(expr)) (stats.init, stats.last)
351351
else (stats, expr)
352352
indented {
353353
printStats(stats1, expr1)

0 commit comments

Comments
 (0)