1 write to ErrorLogOptions
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1491.ErrorLogOptions = errorLogOptions,
22 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.VisualBasic.CommandLine.UnitTests (17)
CommandLineTests.vb (17)
4559Assert.Null(parsedArgs.ErrorLogOptions) 4565Assert.Null(parsedArgs.ErrorLogOptions) 4571Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4577Assert.Equal("C:\My Folder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4588Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.ErrorLogOptions.Path) 4593Assert.Equal("C:\abc\def\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4603Assert.Null(parsedArgs.ErrorLogOptions) 4610Assert.Equal("\\server\share\file.xml", parsedArgs.ErrorLogOptions.Path) 4616Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.ErrorLogOptions.Path) 4617Assert.Equal(SarifVersion.Sarif2, parsedArgs.ErrorLogOptions.SarifVersion) 4624Assert.Null(parsedArgs.ErrorLogOptions) 4630Assert.Null(parsedArgs.ErrorLogOptions) 4636Assert.Null(parsedArgs.ErrorLogOptions) 4643Assert.Null(parsedArgs.ErrorLogOptions) 4650Assert.Null(parsedArgs.ErrorLogOptions) 4662Assert.Equal("C:\abc\def\baz\a\b.xml", parsedArgs.ErrorLogOptions.Path) 4671Assert.Equal("C:\abc\def\baz\b.xml", parsedArgs.ErrorLogOptions.Path)