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