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