We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Driver.setup
1 parent f434fc7 commit 720ca20Copy full SHA for 720ca20
compiler/src/dotty/tools/dotc/Driver.scala
@@ -52,13 +52,11 @@ class Driver extends DotClass {
52
}
53
54
def setup(args: Array[String], rootCtx: Context): (List[String], Context) = {
55
- val ctx0 = rootCtx.fresh
56
- val summary = CompilerCommand.distill(args)(ctx0)
57
- ctx0.setSettings(summary.sstate)
+ val ctx = rootCtx.fresh
+ val summary = CompilerCommand.distill(args)(ctx)
+ ctx.setSettings(summary.sstate)
58
59
- val ctx =
60
- if (shouldAddDocContext(ctx0)) ctx0.setProperty(ContextDoc, new ContextDocstrings)
61
- else ctx0
+ if (shouldAddDocContext(ctx)) ctx.setProperty(ContextDoc, new ContextDocstrings)
62
63
val fileNames = CompilerCommand.checkUsage(summary, sourcesRequired)(ctx)
64
(fileNames, ctx)
0 commit comments