1 write to _compiler
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
38
_compiler
= compiler;
26 references to _compiler
Microsoft.CodeAnalysis.Scripting (26)
Hosting\CommandLine\CommandLineRunner.cs (26)
45
internal CommonCompiler Compiler =>
_compiler
;
53
if (
_compiler
.Arguments.ErrorLogOptions?.Path != null)
55
errorLogger =
_compiler
.GetErrorLogger(_console.Error);
73
Debug.Assert(
_compiler
.Arguments.IsScriptRunner);
75
var sourceFiles =
_compiler
.Arguments.SourceFiles;
77
if (
_compiler
.Arguments.DisplayVersion)
79
_compiler
.PrintVersion(_console.Out);
83
if (
_compiler
.Arguments.DisplayLangVersions)
85
_compiler
.PrintLangVersions(_console.Out);
89
if (sourceFiles.IsEmpty &&
_compiler
.Arguments.DisplayLogo)
91
_compiler
.PrintLogo(_console.Out);
93
if (!
_compiler
.Arguments.DisplayHelp)
99
if (
_compiler
.Arguments.DisplayHelp)
101
_compiler
.PrintHelp(_console.Out);
113
diagnosticsInfos.Add(new DiagnosticInfo(
_compiler
.MessageProvider,
_compiler
.MessageProvider.ERR_ExpectedSingleScript));
117
code =
_compiler
.TryReadFileContent(sourceFiles[0], diagnosticsInfos);
122
var emitDebugInformation = !
_compiler
.Arguments.InteractiveMode;
125
var scriptOptions = GetScriptOptions(
_compiler
.Arguments, scriptPathOpt,
_compiler
.MessageProvider, diagnosticsInfos, emitDebugInformation);
127
var errors =
_compiler
.Arguments.Errors.Concat(diagnosticsInfos.Select(Diagnostic.Create));
128
if (
_compiler
.ReportDiagnostics(errors, _console.Error, errorLogger, compilation: null))
135
if (
_compiler
.Arguments.InteractiveMode)
195
globals.Args.AddRange(
_compiler
.Arguments.ScriptArguments);
204
_compiler
.ReportDiagnostics(e.Diagnostics, _console.Error, errorLogger, compilation: null);
217
globals.Args.AddRange(
_compiler
.Arguments.ScriptArguments);