1 write to ErrorLogOptions
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1492.ErrorLogOptions = errorLogOptions,
41 references to ErrorLogOptions
Microsoft.CodeAnalysis (5)
CommandLine\CommandLineArguments.cs (1)
141public string? ErrorLogPath => ErrorLogOptions?.Path;
CommandLine\CommonCompiler.cs (4)
720Debug.Assert(Arguments.ErrorLogOptions?.Path != null); 723var errorLog = OpenFile(Arguments.ErrorLogOptions.Path, 741if (Arguments.ErrorLogOptions.SarifVersion == SarifVersion.Sarif1) 773if (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.VisualBasic.CommandLine.UnitTests (17)
CommandLineTests.vb (17)
4560Assert.Null(parsedArgs.ErrorLogOptions) 4566Assert.Null(parsedArgs.ErrorLogOptions) 4572Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4578Assert.Equal("C:\My Folder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4589Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path) 4594Assert.Equal("C:\abc\def\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4604Assert.Null(parsedArgs.ErrorLogOptions) 4611Assert.Equal("\\server\share\file.xml", parsedArgs.ErrorLogOptions.Path) 4617Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4618Assert.Equal(SarifVersion.Sarif2, parsedArgs.ErrorLogOptions.SarifVersion) 4625Assert.Null(parsedArgs.ErrorLogOptions) 4631Assert.Null(parsedArgs.ErrorLogOptions) 4637Assert.Null(parsedArgs.ErrorLogOptions) 4644Assert.Null(parsedArgs.ErrorLogOptions) 4651Assert.Null(parsedArgs.ErrorLogOptions) 4663Assert.Equal("C:\abc\def\baz\a\b.xml", parsedArgs.ErrorLogOptions.Path) 4672Assert.Equal("C:\abc\def\baz\b.xml", parsedArgs.ErrorLogOptions.Path)