30 references to LanguageVersion
Microsoft.CodeAnalysis.CSharp.CodeStyle (29)
CastSimplifier.cs (1)
1371
if (originalSemanticModel.Compilation.
LanguageVersion
() < LanguageVersion.CSharp9 &&
ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
35
if (context.Compilation.
LanguageVersion
() < LanguageVersion.CSharp8)
ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
38
if (context.Compilation.
LanguageVersion
() < LanguageVersion.CSharp9 ||
CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (2)
47
if (context.Compilation.
LanguageVersion
() < LanguageVersion.CSharp8)
73
if (context.Compilation.
LanguageVersion
() < requiredLanguageVersion)
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
52
if (context.Compilation.
LanguageVersion
() < LanguageVersion.CSharp7)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
37
if (compilation.
LanguageVersion
() < LanguageVersion.CSharp8)
CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
35
if (compilation.
LanguageVersion
() < LanguageVersion.CSharp7_2)
CSharpRemoveUnnecessaryDiscardDesignationDiagnosticAnalyzer.cs (1)
38
if (context.Compilation.
LanguageVersion
() < LanguageVersion.CSharp9)
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
48
if (context.Compilation.
LanguageVersion
().IsCSharp11OrAbove())
CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
45
if (compilationContext.Compilation.
LanguageVersion
() < LanguageVersion.CSharp10)
CSharpUseAutoPropertyAnalyzer.cs (2)
34
=> compilation.
LanguageVersion
() >= LanguageVersion.CSharp6;
37
=> compilation.
LanguageVersion
() >= LanguageVersion.CSharp6;
CSharpUseCollectionInitializerDiagnosticAnalyzer.cs (1)
27
=> compilation.
LanguageVersion
() >= LanguageVersion.CSharp3;
CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
46
if (context.Compilation.
LanguageVersion
() < LanguageVersion.CSharp8)
CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
38
if (context.Compilation.
LanguageVersion
() < LanguageVersion.CSharp7)
CSharpUseIsNullCheckForReferenceEqualsDiagnosticAnalyzer.cs (2)
22
=> compilation.
LanguageVersion
() >= LanguageVersion.CSharp7;
25
=> compilation.
LanguageVersion
() >= LanguageVersion.CSharp8;
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
61
if (compilation.
LanguageVersion
() < LanguageVersion.CSharp7)
CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
47
if (context.Compilation.
LanguageVersion
() >= LanguageVersion.CSharp11)
CSharpUseNotPatternDiagnosticAnalyzer.cs (1)
46
if (context.Compilation.
LanguageVersion
() < LanguageVersion.CSharp9)
CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (1)
36
if (compilation.
LanguageVersion
() < LanguageVersion.CSharp9)
CSharpUseNullPropagationDiagnosticAnalyzer.cs (1)
34
=> compilation.
LanguageVersion
() >= LanguageVersion.CSharp6;
CSharpUseObjectInitializerDiagnosticAnalyzer.cs (1)
31
return compilation.
LanguageVersion
() >= LanguageVersion.CSharp3;
CSharpUseThrowExpressionDiagnosticAnalyzer.cs (1)
28
=> compilation.
LanguageVersion
() >= LanguageVersion.CSharp7;
CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
53
if (compilation.
LanguageVersion
() < LanguageVersion.CSharp7)
MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
32
if (MakeLocalFunctionStaticHelper.IsStaticLocalFunctionSupported(context.Compilation.
LanguageVersion
()))
UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
69
if (context.Compilation.
LanguageVersion
() < LanguageVersion.CSharp8)
UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
49
if (!context.Compilation.
LanguageVersion
().IsCSharp11OrAbove())
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpSemanticFactsService.cs (1)
46
if (semanticModel.Compilation.
LanguageVersion
().MapSpecifiedToEffectiveVersion() >= LanguageVersion.CSharp8)