24 references to IsFeatureEnabled
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Conversions.cs (1)
433
if (targetTyped && !destination.IsErrorType() && !Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureTargetTypedConditional))
Binder\Binder_InterpolatedString.cs (3)
32
if (startText.StartsWith("@$\"") && !Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAltInterpolatedVerbatimStrings))
53
var newLinesInInterpolationsAllowed = this.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNewLinesInInterpolations);
518
else if (!Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureImprovedInterpolatedStrings) && diagnostics.AccumulatesDiagnostics)
Binder\Binder_Lambda.cs (1)
385
bool allowShadowingNames = binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNameShadowingInNestedFunctions);
Binder\Binder_NameConflicts.cs (1)
103
bool allowShadowing = Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNameShadowingInNestedFunctions);
Binder\Binder_Symbols.cs (4)
731
bool includeNullability = Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes);
916
if (Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureUsingTypeAlias) ? type.ContainsPointer() : type.IsUnsafe())
1356
var binder = !Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureUsingTypeAlias)
1564
bool includeNullability = Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
2458
if (_binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureImprovedInterpolatedStrings) &&
Binder\UsingStatementBinder.cs (1)
217
BindingDiagnosticBag patternDiagnostics = originalBinder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureDisposalPattern)
Errors\MessageID.cs (1)
365
=> compilation.
IsFeatureEnabled
(feature) ? null : GetDisabledFeatureDiagnosticInfo(feature, compilation.LanguageVersion);
FlowAnalysis\DefiniteAssignment.cs (3)
486
if (compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs))
1243
if (compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs))
1284
if (compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs))
FlowAnalysis\NullableWalker.cs (1)
964
|| compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs)))
Symbols\AliasSymbol.cs (1)
401
if (!DeclaringCompilation.
IsFeatureEnabled
(MessageID.IDS_FeatureUsingTypeAlias))
Symbols\ConstraintsHelper.cs (2)
466
bool includeNullability = compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes);
501
this(currentCompilation, conversions, currentCompilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes), location, diagnostics)
Symbols\Source\ParameterHelpers.cs (1)
209
bool allowShadowingNames = withTypeParametersBinder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNameShadowingInNestedFunctions) &&
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4192
if (baseToStringMethod.ContainingModule != this.ContainingModule && !this.DeclaringCompilation.
IsFeatureEnabled
(MessageID.IDS_FeatureSealedToStringInRecord))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1497
compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes);
Symbols\Source\SourceModuleSymbol.cs (1)
649
bool value = compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefFields) || _assemblySymbol.RuntimeSupportsByRefFields;