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