2 writes to ErrorLogOptions
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1548
ErrorLogOptions
= errorLogOptions,
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1472
.
ErrorLogOptions
= errorLogOptions,
42 references to ErrorLogOptions
Microsoft.CodeAnalysis (5)
CommandLine\CommandLineArguments.cs (1)
141
public string? ErrorLogPath =>
ErrorLogOptions
?.Path;
CommandLine\CommonCompiler.cs (4)
643
Debug.Assert(Arguments.
ErrorLogOptions
?.Path != null);
646
var errorLog = OpenFile(Arguments.
ErrorLogOptions
.Path,
664
if (Arguments.
ErrorLogOptions
.SarifVersion == SarifVersion.Sarif1)
696
if (Arguments.
ErrorLogOptions
?.Path != null)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (19)
CommandLineTests.cs (19)
3981
Assert.Null(parsedArgs.
ErrorLogOptions
);
3988
Assert.Null(parsedArgs.
ErrorLogOptions
);
3995
Assert.Null(parsedArgs.
ErrorLogOptions
);
4001
Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4012
Assert.Equal(@"C:\My Folder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4018
Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.
ErrorLogOptions
.Path);
4024
Assert.Equal(@"C:\abc\def\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4034
Assert.Null(parsedArgs.
ErrorLogOptions
);
4042
Assert.Null(parsedArgs.
ErrorLogOptions
);
4048
Assert.Equal(@"\\server\share\file.xml", parsedArgs.
ErrorLogOptions
.Path);
4055
Assert.Null(parsedArgs.
ErrorLogOptions
);
4063
Assert.Null(parsedArgs.
ErrorLogOptions
);
4069
Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4070
Assert.Equal(SarifVersion.Sarif2, parsedArgs.
ErrorLogOptions
.SarifVersion);
4082
Assert.Null(parsedArgs.
ErrorLogOptions
);
4092
Assert.Null(parsedArgs.
ErrorLogOptions
);
4101
Assert.Null(parsedArgs.
ErrorLogOptions
);
4219
Assert.Equal(@"C:\abc\def\baz\a\b.xml", parsedArgs.
ErrorLogOptions
.Path);
4228
Assert.Equal(@"C:\abc\def\baz\b.xml", parsedArgs.
ErrorLogOptions
.Path);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
53
if (_compiler.Arguments.
ErrorLogOptions
?.Path != null)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (17)
CommandLineTests.vb (17)
4552
Assert.Null(parsedArgs.
ErrorLogOptions
)
4558
Assert.Null(parsedArgs.
ErrorLogOptions
)
4564
Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4570
Assert.Equal("C:\My Folder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4581
Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.
ErrorLogOptions
.Path)
4586
Assert.Equal("C:\abc\def\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4596
Assert.Null(parsedArgs.
ErrorLogOptions
)
4603
Assert.Equal("\\server\share\file.xml", parsedArgs.
ErrorLogOptions
.Path)
4609
Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4610
Assert.Equal(SarifVersion.Sarif2, parsedArgs.
ErrorLogOptions
.SarifVersion)
4617
Assert.Null(parsedArgs.
ErrorLogOptions
)
4623
Assert.Null(parsedArgs.
ErrorLogOptions
)
4629
Assert.Null(parsedArgs.
ErrorLogOptions
)
4636
Assert.Null(parsedArgs.
ErrorLogOptions
)
4643
Assert.Null(parsedArgs.
ErrorLogOptions
)
4655
Assert.Equal("C:\abc\def\baz\a\b.xml", parsedArgs.
ErrorLogOptions
.Path)
4664
Assert.Equal("C:\abc\def\baz\b.xml", parsedArgs.
ErrorLogOptions
.Path)