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)
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.VisualBasic.CommandLine.UnitTests (17)
CommandLineTests.vb (17)
4560
Assert.Null(parsedArgs.
ErrorLogOptions
)
4566
Assert.Null(parsedArgs.
ErrorLogOptions
)
4572
Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4578
Assert.Equal("C:\My Folder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4589
Assert.Equal(Path.Combine(baseDirectory, "MyBinary.xml"), parsedArgs.
ErrorLogOptions
.Path)
4594
Assert.Equal("C:\abc\def\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4604
Assert.Null(parsedArgs.
ErrorLogOptions
)
4611
Assert.Equal("\\server\share\file.xml", parsedArgs.
ErrorLogOptions
.Path)
4617
Assert.Equal("C:\MyFolder\MyBinary.xml", parsedArgs.
ErrorLogOptions
.Path)
4618
Assert.Equal(SarifVersion.Sarif2, parsedArgs.
ErrorLogOptions
.SarifVersion)
4625
Assert.Null(parsedArgs.
ErrorLogOptions
)
4631
Assert.Null(parsedArgs.
ErrorLogOptions
)
4637
Assert.Null(parsedArgs.
ErrorLogOptions
)
4644
Assert.Null(parsedArgs.
ErrorLogOptions
)
4651
Assert.Null(parsedArgs.
ErrorLogOptions
)
4663
Assert.Equal("C:\abc\def\baz\a\b.xml", parsedArgs.
ErrorLogOptions
.Path)
4672
Assert.Equal("C:\abc\def\baz\b.xml", parsedArgs.
ErrorLogOptions
.Path)