49 references to RequiredVersion
Microsoft.CodeAnalysis.CSharp (49)
Binder\Binder_Expressions.cs (3)
3335
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureNonTrailingNamedArguments.
RequiredVersion
()));
4525
LanguageVersion requiredVersion = MessageID.IDS_FeatureNestedStackalloc.
RequiredVersion
();
7875
Compilation.LanguageVersion < MessageID.IDS_FeatureNullableReferenceTypes.
RequiredVersion
())
Binder\Binder_InterpolatedString.cs (2)
37
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureAltInterpolatedVerbatimStrings.
RequiredVersion
()));
86
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureNewLinesInInterpolations.
RequiredVersion
()));
Binder\Binder_Patterns.cs (4)
630
var requiredVersion = MessageID.IDS_FeatureRecursivePatterns.
RequiredVersion
();
773
LanguageVersion requiredVersion = MessageID.IDS_FeatureGenericPatternMatching.
RequiredVersion
();
1246
if (Compilation.LanguageVersion < MessageID.IDS_FeatureRecursivePatterns.
RequiredVersion
())
1324
|| (inputType.IsPointerType() && Compilation.LanguageVersion < MessageID.IDS_FeatureRecursivePatterns.
RequiredVersion
()))
Binder\Binder_Statements.cs (1)
396
if (Compilation.LanguageVersion < MessageID.IDS_FeatureSwitchExpression.
RequiredVersion
())
Binder\Binder_Symbols.cs (2)
617
var requiredVersion = MessageID.IDS_FeatureDefaultTypeParameterConstraint.
RequiredVersion
();
931
if (Compilation.LanguageVersion < MessageID.IDS_FeatureDynamic.
RequiredVersion
())
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1274
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureRefReadonlyParameters.
RequiredVersion
()));
CommandLine\CSharpCommandLineParser.cs (2)
1536
if (nullableContextOptions != NullableContextOptions.Disable && parseOptions.LanguageVersion < MessageID.IDS_FeatureNullableReferenceTypes.
RequiredVersion
())
1540
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureNullableReferenceTypes.
RequiredVersion
())), Location.None));
Compilation\CSharpCompilation.cs (3)
2052
else if (LanguageVersion >= MessageID.IDS_FeatureAsyncMain.
RequiredVersion
() && taskEntryPoints.Count > 0)
2966
if (Options.NullableContextOptions != NullableContextOptions.Disable && LanguageVersion < MessageID.IDS_FeatureNullableReferenceTypes.
RequiredVersion
() &&
2971
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureNullableReferenceTypes.
RequiredVersion
())), Location.None));
Compilation\CSharpCompilationExtensions.cs (1)
14
return compilation.LanguageVersion >= feature.
RequiredVersion
();
Compiler\MethodCompiler.cs (2)
617
_compilation.LanguageVersion >= MessageID.IDS_FeatureNullableReferenceTypes.
RequiredVersion
() &&
1809
var isSufficientLangVersion = compilation.LanguageVersion >= MessageID.IDS_FeatureNullableReferenceTypes.
RequiredVersion
();
CSharpParseOptions.cs (1)
267
LanguageVersion requiredVersion = feature.
RequiredVersion
();
Errors\MessageID.cs (1)
460
LanguageVersion requiredVersion = feature.
RequiredVersion
();
FlowAnalysis\AbstractFlowPass_Switch.cs (1)
96
if (compilation.LanguageVersion >= MessageID.IDS_FeatureRecursivePatterns.
RequiredVersion
())
FlowAnalysis\DefiniteAssignment.cs (3)
500
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureAutoDefaultStructs.
RequiredVersion
()));
1302
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureAutoDefaultStructs.
RequiredVersion
()));
1358
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureAutoDefaultStructs.
RequiredVersion
()));
FlowAnalysis\NullableWalker.cs (2)
1625
return compilation.LanguageVersion >= MessageID.IDS_FeatureNullableReferenceTypes.
RequiredVersion
();
2364
var requiredVersion = MessageID.IDS_FeatureDefaultTypeParameterConstraint.
RequiredVersion
();
LanguageVersion.cs (4)
558
return self < MessageID.IDS_FeatureInferredTupleNames.
RequiredVersion
();
563
return self >= MessageID.IDS_FeatureNonTrailingNamedArguments.
RequiredVersion
();
568
return self >= MessageID.IDS_FeatureAttributesOnBackingFields.
RequiredVersion
();
573
return self >= MessageID.IDS_FeatureImprovedOverloadCandidates.
RequiredVersion
();
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
580
if (_factory.Compilation.LanguageVersion >= MessageID.IDS_FeatureCacheStaticMethodGroupConversion.
RequiredVersion
()
Symbols\Source\ModifierUtils.cs (3)
167
requiredVersion = MessageID.IDS_FeatureStaticAbstractMembersInInterfaces.
RequiredVersion
();
185
requiredVersion = MessageID.IDS_DefaultInterfaceImplementation.
RequiredVersion
();
218
LanguageVersion requiredVersion = MessageID.IDS_FeatureStaticAbstractMembersInInterfaces.
RequiredVersion
();
Symbols\Source\SourceMemberContainerSymbol.cs (2)
512
if (name == SyntaxFacts.GetText(contextualKind) && compilation.LanguageVersion >= featureId.
RequiredVersion
())
4461
var requiredVersion = MessageID.IDS_FeatureSealedToStringInRecord.
RequiredVersion
();
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1201
DeclaringCompilation.LanguageVersion >= MessageID.IDS_FeatureCovariantReturnsForOverrides.
RequiredVersion
())
Symbols\Source\SourcePropertySymbol.cs (1)
453
LanguageVersion requiredVersion = MessageID.IDS_FeaturePartialProperties.
RequiredVersion
();
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
170
LanguageVersion requiredVersion = MessageID.IDS_FeatureStaticAbstractMembersInInterfaces.
RequiredVersion
();
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
181
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureAttributesOnBackingFields.
RequiredVersion
())),
Symbols\Tuples\TupleFieldSymbol.cs (1)
284
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureInferredTupleNames.
RequiredVersion
())));
Symbols\TypeSymbol.cs (3)
1015
LanguageVersion requiredVersion = MessageID.IDS_FeatureImplicitImplementationOfNonPublicMembers.
RequiredVersion
();
1639
LanguageVersion requiredVersion = feature.
RequiredVersion
();
1740
LanguageVersion requiredVersion = MessageID.IDS_FeatureStaticAbstractMembersInInterfaces.
RequiredVersion
();
Symbols\VarianceSafety.cs (2)
176
return MessageID.IDS_FeatureVarianceSafetyForStaticInterfaceMembers.
RequiredVersion
() <= member.DeclaringCompilation.LanguageVersion;
475
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureVarianceSafetyForStaticInterfaceMembers.
RequiredVersion
()));