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