35 references to IsFeatureEnabled
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder.ValueChecks.cs (1)
1012
else if (this.IsDirectlyInIterator && Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefUnsafeInIteratorAsync))
Binder\Binder_Expressions.cs (1)
3410
if (!Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefReadonlyParameters))
Binder\Binder_Flags.cs (1)
100
var withoutUnsafe = isIteratorBody && this.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefUnsafeInIteratorAsync);
Binder\Binder_InterpolatedString.cs (3)
32
if (startText.StartsWith("@$\"") && !Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAltInterpolatedVerbatimStrings))
53
var newLinesInInterpolationsAllowed = this.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNewLinesInInterpolations);
664
else if (!Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureImprovedInterpolatedStrings) && diagnostics.AccumulatesDiagnostics)
Binder\Binder_Lambda.cs (1)
383
bool allowShadowingNames = binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNameShadowingInNestedFunctions);
Binder\Binder_NameConflicts.cs (1)
100
bool allowShadowing = Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNameShadowingInNestedFunctions);
Binder\Binder_Statements.cs (1)
270
else if (InUnsafeRegion && Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefUnsafeInIteratorAsync))
Binder\Binder_Symbols.cs (3)
733
bool includeNullability = Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes);
1358
var binder = !Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureUsingTypeAlias)
1581
bool includeNullability = Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3949
return Compilation?.
IsFeatureEnabled
(MessageID.IDS_FeatureFirstClassSpan) != false;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
1705
return _compilation?.
IsFeatureEnabled
(MessageID.IDS_FeatureFirstClassSpan) != false;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
1838
if (!Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureOverloadResolutionPriority))
2922
if (_binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureImprovedInterpolatedStrings) &&
3898
if (argRefKind == RefKind.Ref && binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefReadonlyParameters))
3945
if (compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefReadonlyParameters) &&
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1254
!(refArg == RefKind.Ref && refParameter == RefKind.In && binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefReadonlyParameters)) &&
1265
else if (refArg == RefKind.Ref && refParameter == RefKind.In && !binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefReadonlyParameters))
Errors\MessageID.cs (1)
451
=> compilation.
IsFeatureEnabled
(feature) ? null : GetDisabledFeatureDiagnosticInfo(feature, compilation.LanguageVersion);
FlowAnalysis\DefiniteAssignment.cs (4)
487
if (compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs))
512
if (!compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs))
1293
if (compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs))
1345
else if (compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs))
FlowAnalysis\NullableWalker.cs (1)
897
|| compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs)))
Symbols\AliasSymbol.cs (1)
396
if (!DeclaringCompilation.
IsFeatureEnabled
(MessageID.IDS_FeatureUsingTypeAlias))
Symbols\ConstraintsHelper.cs (2)
495
bool includeNullability = compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes);
534
this(currentCompilation, conversions, currentCompilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes), location, diagnostics)
Symbols\Source\ParameterHelpers.cs (1)
212
bool allowShadowingNames = withTypeParametersBinder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNameShadowingInNestedFunctions) &&
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4472
if (baseToStringMethod.ContainingModule != this.ContainingModule && !this.DeclaringCompilation.
IsFeatureEnabled
(MessageID.IDS_FeatureSealedToStringInRecord))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1527
compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes);
Symbols\Source\SourceModuleSymbol.cs (1)
698
bool value = compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefFields) || _assemblySymbol.RuntimeSupportsByRefFields;
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
757
if (!compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureUsingTypeAlias))
Symbols\Source\SourcePropertySymbolBase.cs (1)
319
if (!property.DeclaringCompilation.
IsFeatureEnabled
(MessageID.IDS_FeatureFieldKeyword))