1 write to ErrorLogOptions
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1492
.
ErrorLogOptions
= errorLogOptions,
41 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)
4162
Assert.Null(parsedArgs.
ErrorLogOptions
);
4169
Assert.Null(parsedArgs.
ErrorLogOptions
);
4176
Assert.Null(parsedArgs.
ErrorLogOptions
);
4182
Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4193
Assert.Equal(@"C:\My Folder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4199
Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.
ErrorLogOptions
.Path);
4205
Assert.Equal(@"C:\abc\def\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4215
Assert.Null(parsedArgs.
ErrorLogOptions
);
4223
Assert.Null(parsedArgs.
ErrorLogOptions
);
4229
Assert.Equal(@"\\server\share\file.xml", parsedArgs.
ErrorLogOptions
.Path);
4236
Assert.Null(parsedArgs.
ErrorLogOptions
);
4244
Assert.Null(parsedArgs.
ErrorLogOptions
);
4250
Assert.Equal(@"C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path);
4251
Assert.Equal(SarifVersion.Sarif2, parsedArgs.
ErrorLogOptions
.SarifVersion);
4263
Assert.Null(parsedArgs.
ErrorLogOptions
);
4273
Assert.Null(parsedArgs.
ErrorLogOptions
);
4282
Assert.Null(parsedArgs.
ErrorLogOptions
);
4400
Assert.Equal(@"C:\abc\def\baz\a\b.xml", parsedArgs.
ErrorLogOptions
.Path);
4409
Assert.Equal(@"C:\abc\def\baz\b.xml", parsedArgs.
ErrorLogOptions
.Path);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (17)
CommandLineTests.vb (17)
4545
Assert.Null(parsedArgs.
ErrorLogOptions
)
4551
Assert.Null(parsedArgs.
ErrorLogOptions
)
4557
Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4563
Assert.Equal("C:\My Folder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4574
Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.
ErrorLogOptions
.Path)
4579
Assert.Equal("C:\abc\def\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4589
Assert.Null(parsedArgs.
ErrorLogOptions
)
4596
Assert.Equal("\\server\share\file.xml", parsedArgs.
ErrorLogOptions
.Path)
4602
Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4603
Assert.Equal(SarifVersion.Sarif2, parsedArgs.
ErrorLogOptions
.SarifVersion)
4610
Assert.Null(parsedArgs.
ErrorLogOptions
)
4616
Assert.Null(parsedArgs.
ErrorLogOptions
)
4622
Assert.Null(parsedArgs.
ErrorLogOptions
)
4629
Assert.Null(parsedArgs.
ErrorLogOptions
)
4636
Assert.Null(parsedArgs.
ErrorLogOptions
)
4648
Assert.Equal("C:\abc\def\baz\a\b.xml", parsedArgs.
ErrorLogOptions
.Path)
4657
Assert.Equal("C:\abc\def\baz\b.xml", parsedArgs.
ErrorLogOptions
.Path)