22 references to LanguageVersion
Microsoft.CodeAnalysis.CSharp.CodeStyle (22)
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)
36var analyzer = new Analyzer(supportsOrPatterns: semanticModel.SyntaxTree.Options.LanguageVersion() >= LanguageVersion.CSharp9);
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
52if (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)
23options.LanguageVersion() >= LanguageVersion.CSharp8;
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
142var languageVersion = body.SyntaxTree.Options.LanguageVersion();
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (1)
56var languageVersion = declaration.SyntaxTree.Options.LanguageVersion();
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
44if (syntaxTree.Options.LanguageVersion() < LanguageVersion.CSharp9)
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
128if (options.LanguageVersion() < LanguageVersion.CSharp10)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
60if (syntaxTree.Options.LanguageVersion() < LanguageVersion.CSharp9)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
61if (syntaxTree.Options.LanguageVersion() < LanguageVersion.CSharp7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
514var languageVersion = semanticModel.SyntaxTree.Options.LanguageVersion();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (10)
49=> options.LanguageVersion() >= LanguageVersion.CSharp6; 52=> options.LanguageVersion() >= LanguageVersion.CSharp7; 55=> options.LanguageVersion() >= LanguageVersion.CSharp7; 58=> options.LanguageVersion() >= LanguageVersion.CSharp9; 61=> options.LanguageVersion() >= LanguageVersion.CSharp10; 64=> options.LanguageVersion() >= LanguageVersion.CSharp9; 67=> options.LanguageVersion() >= LanguageVersion.CSharp10; 70=> options.LanguageVersion() >= LanguageVersion.CSharp7; 77=> options.LanguageVersion() >= LanguageVersion.CSharp10; 1469=> options.LanguageVersion() >= LanguageVersion.CSharp9;