2 writes to ErrorLogOptions
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1597
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)
720
Debug.Assert(Arguments.
ErrorLogOptions
?.Path != null);
723
var errorLog = OpenFile(Arguments.
ErrorLogOptions
.Path,
741
if (Arguments.
ErrorLogOptions
.SarifVersion == SarifVersion.Sarif1)
773
if (Arguments.
ErrorLogOptions
?.Path != null)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (19)
CommandLineTests.cs (19)
4173
Assert.Null(parsedArgs.
ErrorLogOptions
);
4180
Assert.Null(parsedArgs.
ErrorLogOptions
);
4187
Assert.Null(parsedArgs.
ErrorLogOptions
);
4193
Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4204
Assert.Equal(@"C:\My Folder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4210
Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.
ErrorLogOptions
.Path);
4216
Assert.Equal(@"C:\abc\def\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4226
Assert.Null(parsedArgs.
ErrorLogOptions
);
4234
Assert.Null(parsedArgs.
ErrorLogOptions
);
4240
Assert.Equal(@"\\server\share\file.xml", parsedArgs.
ErrorLogOptions
.Path);
4247
Assert.Null(parsedArgs.
ErrorLogOptions
);
4255
Assert.Null(parsedArgs.
ErrorLogOptions
);
4261
Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4262
Assert.Equal(SarifVersion.Sarif2, parsedArgs.
ErrorLogOptions
.SarifVersion);
4274
Assert.Null(parsedArgs.
ErrorLogOptions
);
4284
Assert.Null(parsedArgs.
ErrorLogOptions
);
4293
Assert.Null(parsedArgs.
ErrorLogOptions
);
4411
Assert.Equal(@"C:\abc\def\baz\a\b.xml", parsedArgs.
ErrorLogOptions
.Path);
4420
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)