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