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