File tree 3 files changed +2
-24
lines changed
compiler/src/dotty/tools/dotc
3 files changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ class ScalaSettings extends Settings.SettingGroup {
96
96
val YnoPatmatOpt = BooleanSetting (" -Yno-patmat-opt" , " disable all pattern matching optimizations." )
97
97
val YplainPrinter = BooleanSetting (" -Yplain-printer" , " Pretty-print using a plain printer." )
98
98
val YprintSyms = BooleanSetting (" -Yprint-syms" , " when printing trees print info in symbols instead of corresponding info in trees." )
99
- val YprintNoPrivate = BooleanSetting (" -Yprint-no-private" , " when printing trees print do not print private/protected members." )
100
99
val YprintDebug = BooleanSetting (" -Yprint-debug" , " when printing trees, print some extra information useful for debugging." )
101
100
val YtestPickler = BooleanSetting (" -Ytest-pickler" , " self-test for pickling functionality; should be used with -Ystop-after:pickler" )
102
101
val YcheckReentrant = BooleanSetting (" -Ycheck-reentrant" , " check that compiled program does not contain vars that can be accessed from a global root." )
Original file line number Diff line number Diff line change @@ -15,26 +15,7 @@ object Main extends dotc.Driver {
15
15
16
16
override def setup (args0 : Array [String ], rootCtx : Context ): (List [String ], Context ) = {
17
17
var args = args0.filter(a => a != " -decompile" )
18
- args = if (args.contains(" -tasty" )) args else args :+ " -tasty"
19
- args = if (args.exists(a => a == " -private" || a == " -p" )) args.filter(a => a != " -private" && a != " -p" ) else args :+ " -Yprint-no-private"
20
- args = if (args.exists(a => a == " -code" || a == " -c" )) args.filter(a => a != " -code" && a != " -c" ) else args :+ " -Yprint-syms"
21
-
22
- if (args.contains(" -help" )) {
23
- printHelp()
24
- sys.exit(0 )
25
- } else super .setup(args, rootCtx)
26
- }
27
-
28
- private def printHelp (): Unit = {
29
- val msg =
30
- """ dotc -decompiler <option|class>*
31
- |
32
- |options:
33
- | -private | -p Print private and protected members
34
- | -code | -c Print implementations (code disassembly)
35
- | -classpath <path> Classpath where to find the classes
36
- | -help Print this message
37
- """ .stripMargin
38
- println(msg)
18
+ args = if (args.contains(" -tasty" )) args else " -tasty" +: args
19
+ super .setup(args, rootCtx)
39
20
}
40
21
}
Original file line number Diff line number Diff line change @@ -318,8 +318,6 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
318
318
case _ => false
319
319
}
320
320
params ::: rest
321
- } else if (ctx.settings.YprintNoPrivate .value) {
322
- impl.body.filter(t => ! t.symbol.isPrivate && ! t.symbol.is(Protected ))
323
321
} else impl.body
324
322
325
323
val bodyText = " {" ~~ selfText ~~ toTextGlobal(primaryConstrs ::: body, " \n " ) ~ " }"
You can’t perform that action at this time.
0 commit comments