2 writes to ErrorLogOptions
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1548ErrorLogOptions = errorLogOptions,
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1472.ErrorLogOptions = errorLogOptions,
42 references to ErrorLogOptions
Microsoft.CodeAnalysis (5)
CommandLine\CommandLineArguments.cs (1)
141public string? ErrorLogPath => ErrorLogOptions?.Path;
CommandLine\CommonCompiler.cs (4)
643Debug.Assert(Arguments.ErrorLogOptions?.Path != null); 646var errorLog = OpenFile(Arguments.ErrorLogOptions.Path, 664if (Arguments.ErrorLogOptions.SarifVersion == SarifVersion.Sarif1) 696if (Arguments.ErrorLogOptions?.Path != null)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (19)
CommandLineTests.cs (19)
3981Assert.Null(parsedArgs.ErrorLogOptions); 3988Assert.Null(parsedArgs.ErrorLogOptions); 3995Assert.Null(parsedArgs.ErrorLogOptions); 4001Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4012Assert.Equal(@"C:\My Folder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4018Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path); 4024Assert.Equal(@"C:\abc\def\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4034Assert.Null(parsedArgs.ErrorLogOptions); 4042Assert.Null(parsedArgs.ErrorLogOptions); 4048Assert.Equal(@"\\server\share\file.xml", parsedArgs.ErrorLogOptions.Path); 4055Assert.Null(parsedArgs.ErrorLogOptions); 4063Assert.Null(parsedArgs.ErrorLogOptions); 4069Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4070Assert.Equal(SarifVersion.Sarif2, parsedArgs.ErrorLogOptions.SarifVersion); 4082Assert.Null(parsedArgs.ErrorLogOptions); 4092Assert.Null(parsedArgs.ErrorLogOptions); 4101Assert.Null(parsedArgs.ErrorLogOptions); 4219Assert.Equal(@"C:\abc\def\baz\a\b.xml", parsedArgs.ErrorLogOptions.Path); 4228Assert.Equal(@"C:\abc\def\baz\b.xml", parsedArgs.ErrorLogOptions.Path);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
53if (_compiler.Arguments.ErrorLogOptions?.Path != null)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (17)
CommandLineTests.vb (17)
4552Assert.Null(parsedArgs.ErrorLogOptions) 4558Assert.Null(parsedArgs.ErrorLogOptions) 4564Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4570Assert.Equal("C:\My Folder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4581Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path) 4586Assert.Equal("C:\abc\def\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4596Assert.Null(parsedArgs.ErrorLogOptions) 4603Assert.Equal("\\server\share\file.xml", parsedArgs.ErrorLogOptions.Path) 4609Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4610Assert.Equal(SarifVersion.Sarif2, parsedArgs.ErrorLogOptions.SarifVersion) 4617Assert.Null(parsedArgs.ErrorLogOptions) 4623Assert.Null(parsedArgs.ErrorLogOptions) 4629Assert.Null(parsedArgs.ErrorLogOptions) 4636Assert.Null(parsedArgs.ErrorLogOptions) 4643Assert.Null(parsedArgs.ErrorLogOptions) 4655Assert.Equal("C:\abc\def\baz\a\b.xml", parsedArgs.ErrorLogOptions.Path) 4664Assert.Equal("C:\abc\def\baz\b.xml", parsedArgs.ErrorLogOptions.Path)