1 write to IncludeNullability
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
42
IncludeNullability
= includeNullability;
30 references to IncludeNullability
Microsoft.CodeAnalysis.CSharp (30)
Binder\Semantics\BestTypeInferrer.cs (1)
68
IEqualityComparer<TypeSymbol> comparer = conversions.
IncludeNullability
? Symbols.SymbolEqualityComparer.ConsiderEverything : Symbols.SymbolEqualityComparer.IgnoringNullable;
Binder\Semantics\Conversions\Conversions.cs (2)
32
return new Conversions(_binder, currentRecursionDepth,
IncludeNullability
, otherNullabilityOpt: null);
40
Debug.Assert(
IncludeNullability
!= includeNullability);
Binder\Semantics\Conversions\ConversionsBase.cs (14)
36
Debug.Assert(otherNullabilityOpt == null || includeNullability != otherNullabilityOpt.
IncludeNullability
);
52
if (
IncludeNullability
== includeNullability)
60
Debug.Assert(_lazyOtherNullability.
IncludeNullability
== includeNullability);
1819
return HasIdentityConversionInternal(type1, type2,
IncludeNullability
);
1830
if (!
IncludeNullability
)
1862
if (!
IncludeNullability
)
1893
Debug.Assert(
IncludeNullability
);
1955
Debug.Assert(!
IncludeNullability
);
2290
Debug.Assert(!
IncludeNullability
);
2308
Debug.Assert(!
IncludeNullability
);
2595
if (
IncludeNullability
&& !HasTopLevelNullabilityImplicitConversion(elementType, argument0))
2605
if (
IncludeNullability
)
3420
return (!
IncludeNullability
|| HasTopLevelNullabilityImplicitConversion(sourceType, destinationType))
3426
return (!
IncludeNullability
|| HasTopLevelNullabilityIdentityConversion(sourceType, destinationType))
Binder\Semantics\Conversions\TypeConversions.cs (2)
27
return new TypeConversions(this.corLibrary, currentRecursionDepth,
IncludeNullability
, otherNullabilityOpt: null);
32
Debug.Assert(
IncludeNullability
!= includeNullability);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (6)
454
if (_conversions.
IncludeNullability
&& _nullableAnnotationLowerBounds[i].IsAnnotated())
2813
if (_conversions.
IncludeNullability
)
3318
if (!conversions.
IncludeNullability
)
3325
Debug.Assert(conversions.
IncludeNullability
||
3359
var comparison = conversions.
IncludeNullability
? TypeCompareKind.ConsiderEverything : TypeCompareKind.IgnoreNullableModifiersForReferenceTypes;
3388
if (conversions.
IncludeNullability
&& candidates.TryGetValue(bound, out var oldBound))
BoundTree\UnboundLambda.cs (2)
261
if (conversions.
IncludeNullability
)
283
if (conversions.
IncludeNullability
)
Symbols\ConstraintsHelper.cs (2)
902
Debug.Assert(!args.Conversions.
IncludeNullability
|| (nullabilityDiagnosticsBuilderOpt != null));
1529
Debug.Assert(!conversions.
IncludeNullability
);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1365
Debug.Assert(conversions.
IncludeNullability
);