1 write to Compiler
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
42
Compiler
= compiler;
25 references to Compiler
Microsoft.CodeAnalysis.Scripting (25)
Hosting\CommandLine\CommandLineRunner.cs (25)
58
if (
Compiler
.Arguments.ErrorLogOptions?.Path != null)
60
errorLogger =
Compiler
.GetErrorLogger(Console.Error);
78
Debug.Assert(
Compiler
.Arguments.IsScriptRunner);
80
var sourceFiles =
Compiler
.Arguments.SourceFiles;
82
if (
Compiler
.Arguments.DisplayVersion)
84
Compiler
.PrintVersion(Console.Out);
88
if (
Compiler
.Arguments.DisplayLangVersions)
90
Compiler
.PrintLangVersions(Console.Out);
94
if (sourceFiles.IsEmpty &&
Compiler
.Arguments.DisplayLogo)
96
Compiler
.PrintLogo(Console.Out);
98
if (!
Compiler
.Arguments.DisplayHelp)
104
if (
Compiler
.Arguments.DisplayHelp)
106
Compiler
.PrintHelp(Console.Out);
118
diagnosticsInfos.Add(new DiagnosticInfo(
Compiler
.MessageProvider,
Compiler
.MessageProvider.ERR_ExpectedSingleScript));
122
code =
Compiler
.TryReadFileContent(sourceFiles[0], diagnosticsInfos);
127
var emitDebugInformation = !
Compiler
.Arguments.InteractiveMode;
130
var scriptOptions = GetScriptOptions(
Compiler
.Arguments, scriptPathOpt,
Compiler
.MessageProvider, diagnosticsInfos, emitDebugInformation);
132
var errors =
Compiler
.Arguments.Errors.Concat(diagnosticsInfos.Select(Diagnostic.Create));
133
if (
Compiler
.ReportDiagnostics(errors, Console.Error, errorLogger, compilation: null))
141
if (
Compiler
.Arguments.InteractiveMode)
205
globals.Args.AddRange(
Compiler
.Arguments.ScriptArguments);
214
Compiler
.ReportDiagnostics(e.Diagnostics, Console.Error, errorLogger, compilation: null);
227
globals.Args.AddRange(
Compiler
.Arguments.ScriptArguments);