20 references to LanguageVersion
Microsoft.CodeAnalysis.CSharp.CodeStyle (20)
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertNamespaceAnalysis.cs (1)
41
=> CanOfferUseFileScoped(option, root, declaration, forAnalyzer, root.SyntaxTree.Options.
LanguageVersion
());
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (1)
36
var analyzer = new Analyzer(supportsOrPatterns: semanticModel.SyntaxTree.Options.
LanguageVersion
() >= LanguageVersion.CSharp9);
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
53
if (ifStatement.SyntaxTree.Options.
LanguageVersion
() < LanguageVersion.CSharp6)
src\Analyzers\CSharp\Analyzers\RemoveUnusedParametersAndValues\CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
30
=> tree.Options.
LanguageVersion
() >= LanguageVersion.CSharp7;
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
27
options.
LanguageVersion
() >= LanguageVersion.CSharp8;
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
142
var languageVersion = body.SyntaxTree.Options.
LanguageVersion
();
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (1)
55
var languageVersion = declaration.SyntaxTree.Options.
LanguageVersion
();
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
44
if (syntaxTree.Options.
LanguageVersion
() < LanguageVersion.CSharp9)
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
128
if (options.
LanguageVersion
() < LanguageVersion.CSharp10)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
65
if (syntaxTree.Options.
LanguageVersion
() < LanguageVersion.CSharp9)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
64
if (syntaxTree.Options.
LanguageVersion
() < LanguageVersion.CSharp7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (9)
48
=> options.
LanguageVersion
() >= LanguageVersion.CSharp6;
51
=> options.
LanguageVersion
() >= LanguageVersion.CSharp7;
54
=> options.
LanguageVersion
() >= LanguageVersion.CSharp7;
57
=> options.
LanguageVersion
() >= LanguageVersion.CSharp9;
60
=> options.
LanguageVersion
() >= LanguageVersion.CSharp10;
63
=> options.
LanguageVersion
() >= LanguageVersion.CSharp9;
66
=> options.
LanguageVersion
() >= LanguageVersion.CSharp10;
69
=> options.
LanguageVersion
() >= LanguageVersion.CSharp7;
1478
=> options.
LanguageVersion
() >= LanguageVersion.CSharp9;