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)
4176Assert.Null(parsedArgs.ErrorLogOptions); 4183Assert.Null(parsedArgs.ErrorLogOptions); 4190Assert.Null(parsedArgs.ErrorLogOptions); 4196Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4207Assert.Equal(@"C:\My Folder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4213Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path); 4219Assert.Equal(@"C:\abc\def\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4229Assert.Null(parsedArgs.ErrorLogOptions); 4237Assert.Null(parsedArgs.ErrorLogOptions); 4243Assert.Equal(@"\\server\share\file.xml", parsedArgs.ErrorLogOptions.Path); 4250Assert.Null(parsedArgs.ErrorLogOptions); 4258Assert.Null(parsedArgs.ErrorLogOptions); 4264Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4265Assert.Equal(SarifVersion.Sarif2, parsedArgs.ErrorLogOptions.SarifVersion); 4277Assert.Null(parsedArgs.ErrorLogOptions); 4287Assert.Null(parsedArgs.ErrorLogOptions); 4296Assert.Null(parsedArgs.ErrorLogOptions); 4414Assert.Equal(@"C:\abc\def\baz\a\b.xml", parsedArgs.ErrorLogOptions.Path); 4423Assert.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)