Skip to content

Commit 435fca4

Browse files
committed
Tweaks to printing
- increase page width - print scopes more legibly under -verbose
1 parent 5d6c102 commit 435fca4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ScalaSettings extends Settings.SettingGroup {
3737
val usejavacp = BooleanSetting("-usejavacp", "Utilize the java.class.path in classpath resolution.")
3838
val verbose = BooleanSetting("-verbose", "Output messages about what the compiler is doing.")
3939
val version = BooleanSetting("-version", "Print product version and exit.")
40-
val pageWidth = IntSetting("-pagewidth", "Set page width", 80)
40+
val pageWidth = IntSetting("-pagewidth", "Set page width", 120)
4141

4242
val jvmargs = PrefixSetting("-J<flag>", "-J", "Pass <flag> directly to the runtime system.")
4343
val defines = PrefixSetting("-Dproperty=value", "-D", "Pass -Dproperty=value directly to the runtime system.")

src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
403403
case impl: Template =>
404404
modText(tree.mods, if ((tree).mods is Trait) "trait" else "class") ~~
405405
nameIdText(tree) ~ withEnclosingDef(tree) { toTextTemplate(impl) } ~
406-
(if (tree.hasType && ctx.settings.verbose.value) s"[decls = ${tree.symbol.info.decls}]" else "")
406+
(if (tree.hasType && ctx.settings.verbose.value) i"[decls = ${tree.symbol.info.decls}]" else "")
407407
case rhs: TypeBoundsTree =>
408408
typeDefText(toText(rhs))
409409
case _ =>

0 commit comments

Comments
 (0)