38 references to IsFeatureEnabled
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder.ValueChecks.cs (1)
1042
else if (this.IsDirectlyInIterator && Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefUnsafeInIteratorAsync))
Binder\Binder_Expressions.cs (1)
3896
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)
374
bool allowShadowingNames = binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNameShadowingInNestedFunctions);
Binder\Binder_NameConflicts.cs (1)
121
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)
741
bool includeNullability = Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes);
1366
var binder = !Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureUsingTypeAlias)
1589
bool includeNullability = Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNullableReferenceTypes);
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3947
return Compilation?.
IsFeatureEnabled
(MessageID.IDS_FeatureFirstClassSpan) != false;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
1732
return _compilation?.
IsFeatureEnabled
(MessageID.IDS_FeatureFirstClassSpan) != false;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
1853
if (!Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureOverloadResolutionPriority))
2953
if (_binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureImprovedInterpolatedStrings) &&
3476
if (Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureFirstClassSpan))
3962
if (argRefKind == RefKind.Ref && binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefReadonlyParameters))
4009
if (compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefReadonlyParameters) &&
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1256
!(refArg == RefKind.Ref && refParameter == RefKind.In && binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefReadonlyParameters)) &&
1267
else if (refArg == RefKind.Ref && refParameter == RefKind.In && !binder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureRefReadonlyParameters))
Errors\MessageID.cs (1)
459
=> compilation.
IsFeatureEnabled
(feature) ? null : GetDisabledFeatureDiagnosticInfo(feature, compilation.LanguageVersion);
FlowAnalysis\DefiniteAssignment.cs (4)
510
if (compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs))
535
if (!compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs))
1308
if (compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs))
1360
else if (compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs))
FlowAnalysis\NullableWalker.cs (1)
906
|| compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureAutoDefaultStructs)))
Lowering\DiagnosticsPass_ExpressionTrees.cs (3)
333
!_compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureExpressionOptionalAndNamedArguments))
338
!_compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureExpressionOptionalAndNamedArguments))
345
Debug.Assert(_compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureExpressionOptionalAndNamedArguments));
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)
228
bool allowShadowingNames = withTypeParametersBinder.Compilation.
IsFeatureEnabled
(MessageID.IDS_FeatureNameShadowingInNestedFunctions) &&
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1540
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)
320
if (!property.DeclaringCompilation.
IsFeatureEnabled
(MessageID.IDS_FeatureFieldKeyword))