14 references to SarifVersion
Microsoft.CodeAnalysis (12)
CommandLine\CommandLineParser.cs (2)
231
SarifVersion
sarifVersion =
SarifVersion
.Default;
CommandLine\CommonCompiler.cs (1)
741
if (Arguments.ErrorLogOptions.SarifVersion ==
SarifVersion
.Sarif1)
CommandLine\ErrorLogOptions.cs (2)
22
public
SarifVersion
SarifVersion { get; }
29
public ErrorLogOptions(string path,
SarifVersion
sarifVersion)
CommandLine\SarifVersion.cs (7)
39
public static bool TryParse(string version, out
SarifVersion
result)
43
result =
SarifVersion
.Default;
50
result =
SarifVersion
.Default;
54
result =
SarifVersion
.Latest;
59
result =
SarifVersion
.Sarif1;
64
result =
SarifVersion
.Sarif2;
68
result =
SarifVersion
.Default;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
4261
Assert.Equal(
SarifVersion
.Sarif2, parsedArgs.ErrorLogOptions.SarifVersion);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
4618
Assert.Equal(
SarifVersion
.Sarif2, parsedArgs.ErrorLogOptions.SarifVersion)