1 write to Compiler
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
40
Compiler
= compiler;
26 references to Compiler
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
CommandLineRunnerTests.cs (1)
677
var arguments = ((CSharpInteractiveCompiler)csi.
Compiler
).Arguments;
Microsoft.CodeAnalysis.Scripting (25)
Hosting\CommandLine\CommandLineRunner.cs (25)
56
if (
Compiler
.Arguments.ErrorLogOptions?.Path != null)
58
errorLogger =
Compiler
.GetErrorLogger(Console.Error);
76
Debug.Assert(
Compiler
.Arguments.IsScriptRunner);
78
var sourceFiles =
Compiler
.Arguments.SourceFiles;
80
if (
Compiler
.Arguments.DisplayVersion)
82
Compiler
.PrintVersion(Console.Out);
86
if (
Compiler
.Arguments.DisplayLangVersions)
88
Compiler
.PrintLangVersions(Console.Out);
92
if (sourceFiles.IsEmpty &&
Compiler
.Arguments.DisplayLogo)
94
Compiler
.PrintLogo(Console.Out);
96
if (!
Compiler
.Arguments.DisplayHelp)
102
if (
Compiler
.Arguments.DisplayHelp)
104
Compiler
.PrintHelp(Console.Out);
116
diagnosticsInfos.Add(new DiagnosticInfo(
Compiler
.MessageProvider,
Compiler
.MessageProvider.ERR_ExpectedSingleScript));
120
code =
Compiler
.TryReadFileContent(sourceFiles[0], diagnosticsInfos);
125
var emitDebugInformation = !
Compiler
.Arguments.InteractiveMode;
128
var scriptOptions = GetScriptOptions(
Compiler
.Arguments, scriptPathOpt,
Compiler
.MessageProvider, diagnosticsInfos, emitDebugInformation);
130
var errors =
Compiler
.Arguments.Errors.Concat(diagnosticsInfos.Select(Diagnostic.Create));
131
if (
Compiler
.ReportDiagnostics(errors, Console.Error, errorLogger, compilation: null))
139
if (
Compiler
.Arguments.InteractiveMode)
203
globals.Args.AddRange(
Compiler
.Arguments.ScriptArguments);
212
Compiler
.ReportDiagnostics(e.Diagnostics, Console.Error, errorLogger, compilation: null);
225
globals.Args.AddRange(
Compiler
.Arguments.ScriptArguments);