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)
4162Assert.Null(parsedArgs.ErrorLogOptions); 4169Assert.Null(parsedArgs.ErrorLogOptions); 4176Assert.Null(parsedArgs.ErrorLogOptions); 4182Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4193Assert.Equal(@"C:\My Folder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4199Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path); 4205Assert.Equal(@"C:\abc\def\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4215Assert.Null(parsedArgs.ErrorLogOptions); 4223Assert.Null(parsedArgs.ErrorLogOptions); 4229Assert.Equal(@"\\server\share\file.xml", parsedArgs.ErrorLogOptions.Path); 4236Assert.Null(parsedArgs.ErrorLogOptions); 4244Assert.Null(parsedArgs.ErrorLogOptions); 4250Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path); 4251Assert.Equal(SarifVersion.Sarif2, parsedArgs.ErrorLogOptions.SarifVersion); 4263Assert.Null(parsedArgs.ErrorLogOptions); 4273Assert.Null(parsedArgs.ErrorLogOptions); 4282Assert.Null(parsedArgs.ErrorLogOptions); 4400Assert.Equal(@"C:\abc\def\baz\a\b.xml", parsedArgs.ErrorLogOptions.Path); 4409Assert.Equal(@"C:\abc\def\baz\b.xml", parsedArgs.ErrorLogOptions.Path);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (17)
CommandLineTests.vb (17)
4545Assert.Null(parsedArgs.ErrorLogOptions) 4551Assert.Null(parsedArgs.ErrorLogOptions) 4557Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4563Assert.Equal("C:\My Folder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4574Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path) 4579Assert.Equal("C:\abc\def\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4589Assert.Null(parsedArgs.ErrorLogOptions) 4596Assert.Equal("\\server\share\file.xml", parsedArgs.ErrorLogOptions.Path) 4602Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4603Assert.Equal(SarifVersion.Sarif2, parsedArgs.ErrorLogOptions.SarifVersion) 4610Assert.Null(parsedArgs.ErrorLogOptions) 4616Assert.Null(parsedArgs.ErrorLogOptions) 4622Assert.Null(parsedArgs.ErrorLogOptions) 4629Assert.Null(parsedArgs.ErrorLogOptions) 4636Assert.Null(parsedArgs.ErrorLogOptions) 4648Assert.Equal("C:\abc\def\baz\a\b.xml", parsedArgs.ErrorLogOptions.Path) 4657Assert.Equal("C:\abc\def\baz\b.xml", parsedArgs.ErrorLogOptions.Path)