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