Skip to content

Commit d781b3e

Browse files
committed
Rename -Ycc-print-fresh to -Ycc-verbose
1 parent 9a49c52 commit d781b3e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ private sealed trait YSettings:
452452
val YccDebug: Setting[Boolean] = BooleanSetting(ForkSetting, "Ycc-debug", "Used in conjunction with captureChecking language import, debug info for captured references.")
453453
val YccNew: Setting[Boolean] = BooleanSetting(ForkSetting, "Ycc-new", "Used in conjunction with captureChecking language import, try out new variants (debug option)")
454454
val YccLog: Setting[Boolean] = BooleanSetting(ForkSetting, "Ycc-log", "Used in conjunction with captureChecking language import, print tracing and debug info")
455-
val YccPrintFresh: Setting[Boolean] = BooleanSetting(ForkSetting, "Ycc-print-fresh", "Print hidden sets of fresh `cap` instances")
455+
val YccVerbose: Setting[Boolean] = BooleanSetting(ForkSetting, "Ycc-verbose", "Print root capabilities with more details")
456456
val YccPrintSetup: Setting[Boolean] = BooleanSetting(ForkSetting, "Ycc-print-setup", "Used in conjunction with captureChecking language import, print trees after cc.Setup phase")
457457

458458
/** Area-specific debug output */

compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class PlainPrinter(_ctx: Context) extends Printer {
2828
protected def printDebug = ctx.settings.YprintDebug.value
2929

3030
/** Print Fresh instances as <cap hiding ...> */
31-
protected def printFreshDetailed = ctx.settings.YccPrintFresh.value
31+
protected def ccVerbose = ctx.settings.YccVerbose.value
3232

3333
/** Print Fresh instances as "fresh" */
34-
protected def printFresh = printFreshDetailed || ctx.property(PrintFresh).isDefined
34+
protected def printFresh = ccVerbose || ctx.property(PrintFresh).isDefined
3535

3636
private var openRecs: List[RecType] = Nil
3737

@@ -464,7 +464,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
464464
vbleText ~ hashStr(binder) ~ Str(idStr).provided(showUniqueIds)
465465
case tp @ root.Fresh(hidden) =>
466466
val idStr = if showUniqueIds then s"#${tp.rootAnnot.id}" else ""
467-
if printFreshDetailed then s"<cap$idStr hiding " ~ toTextCaptureSet(hidden) ~ ">"
467+
if ccVerbose then s"<fresh$idStr hiding " ~ toTextCaptureSet(hidden) ~ ">"
468468
else if printFresh then "fresh"
469469
else "cap"
470470
case tp => toText(tp)

0 commit comments

Comments
 (0)