2 writes to ErrorLogOptions
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1596
ErrorLogOptions
= errorLogOptions,
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1510
.
ErrorLogOptions
= errorLogOptions,
25 references to ErrorLogOptions
Microsoft.CodeAnalysis (5)
CommandLine\CommandLineArguments.cs (1)
141
public string? ErrorLogPath =>
ErrorLogOptions
?.Path;
CommandLine\CommonCompiler.cs (4)
708
Debug.Assert(Arguments.
ErrorLogOptions
?.Path != null);
711
var errorLog = OpenFile(Arguments.
ErrorLogOptions
.Path,
729
if (Arguments.
ErrorLogOptions
.SarifVersion == SarifVersion.Sarif1)
761
if (Arguments.
ErrorLogOptions
?.Path != null)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (19)
CommandLineTests.cs (19)
4177
Assert.Null(parsedArgs.
ErrorLogOptions
);
4184
Assert.Null(parsedArgs.
ErrorLogOptions
);
4191
Assert.Null(parsedArgs.
ErrorLogOptions
);
4197
Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4208
Assert.Equal(@"C:\My Folder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4214
Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.
ErrorLogOptions
.Path);
4220
Assert.Equal(@"C:\abc\def\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4230
Assert.Null(parsedArgs.
ErrorLogOptions
);
4238
Assert.Null(parsedArgs.
ErrorLogOptions
);
4244
Assert.Equal(@"\\server\share\file.xml", parsedArgs.
ErrorLogOptions
.Path);
4251
Assert.Null(parsedArgs.
ErrorLogOptions
);
4259
Assert.Null(parsedArgs.
ErrorLogOptions
);
4265
Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4266
Assert.Equal(SarifVersion.Sarif2, parsedArgs.
ErrorLogOptions
.SarifVersion);
4278
Assert.Null(parsedArgs.
ErrorLogOptions
);
4288
Assert.Null(parsedArgs.
ErrorLogOptions
);
4297
Assert.Null(parsedArgs.
ErrorLogOptions
);
4415
Assert.Equal(@"C:\abc\def\baz\a\b.xml", parsedArgs.
ErrorLogOptions
.Path);
4424
Assert.Equal(@"C:\abc\def\baz\b.xml", parsedArgs.
ErrorLogOptions
.Path);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
56
if (Compiler.Arguments.
ErrorLogOptions
?.Path != null)