2 writes to ErrorLogOptions
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1596ErrorLogOptions = errorLogOptions,
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1510.ErrorLogOptions = errorLogOptions,
25 references to ErrorLogOptions
Microsoft.CodeAnalysis (5)
CommandLine\CommandLineArguments.cs (1)
141public string? ErrorLogPath => ErrorLogOptions?.Path;
CommandLine\CommonCompiler.cs (4)
708Debug.Assert(Arguments.ErrorLogOptions?.Path != null); 711var errorLog = OpenFile(Arguments.ErrorLogOptions.Path, 729if (Arguments.ErrorLogOptions.SarifVersion == SarifVersion.Sarif1) 761if (Arguments.ErrorLogOptions?.Path != null)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (19)
CommandLineTests.cs (19)
4177Assert.Null(parsedArgs.ErrorLogOptions); 4184Assert.Null(parsedArgs.ErrorLogOptions); 4191Assert.Null(parsedArgs.ErrorLogOptions); 4197Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4208Assert.Equal(@"C:\My Folder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4214Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path); 4220Assert.Equal(@"C:\abc\def\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4230Assert.Null(parsedArgs.ErrorLogOptions); 4238Assert.Null(parsedArgs.ErrorLogOptions); 4244Assert.Equal(@"\\server\share\file.xml", parsedArgs.ErrorLogOptions.Path); 4251Assert.Null(parsedArgs.ErrorLogOptions); 4259Assert.Null(parsedArgs.ErrorLogOptions); 4265Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4266Assert.Equal(SarifVersion.Sarif2, parsedArgs.ErrorLogOptions.SarifVersion); 4278Assert.Null(parsedArgs.ErrorLogOptions); 4288Assert.Null(parsedArgs.ErrorLogOptions); 4297Assert.Null(parsedArgs.ErrorLogOptions); 4415Assert.Equal(@"C:\abc\def\baz\a\b.xml", parsedArgs.ErrorLogOptions.Path); 4424Assert.Equal(@"C:\abc\def\baz\b.xml", parsedArgs.ErrorLogOptions.Path);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
56if (Compiler.Arguments.ErrorLogOptions?.Path != null)