20 references to IsOblivious
Microsoft.CodeAnalysis.CSharp (20)
Binder\Semantics\Conversions\ConversionsBase.cs (4)
1835
if (source.NullableAnnotation.
IsOblivious
() || destination.NullableAnnotation.
IsOblivious
())
1867
if (source.NullableAnnotation.
IsOblivious
() || destination.NullableAnnotation.
IsOblivious
() || destination.NullableAnnotation.IsAnnotated())
FlowAnalysis\NullableWalker.cs (2)
840
if (!type.NullableAnnotation.
IsOblivious
())
10054
if (lValueType.NullableAnnotation.
IsOblivious
() || !lValueType.CanBeAssignedNull)
Symbols\ConstraintsHelper.cs (1)
1658
if (objectConstraint.NullableAnnotation.
IsOblivious
())
Symbols\Metadata\PE\PETypeParameterSymbol.cs (2)
201
if (bestObjectConstraint.NullableAnnotation.
IsOblivious
() && !HasReferenceTypeConstraint)
330
else if (constraintType.NullableAnnotation.
IsOblivious
() || isNotNullable == null)
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
351
static (type, arg, flag) => !type.Type.IsValueType && !type.NullableAnnotation.
IsOblivious
(),
Symbols\SubstitutedTypeParameterSymbol.cs (1)
124
if (bestObjectConstraint.NullableAnnotation.
IsOblivious
() && !HasReferenceTypeConstraint)
Symbols\TypeParameterSymbol.cs (1)
498
if (constraintType.NullableAnnotation.
IsOblivious
())
Symbols\TypeWithAnnotations.cs (8)
370
((comparison & TypeCompareKind.ObliviousNullableModifierMatchesAny) == 0 || (!thisAnnotation.
IsOblivious
() && !otherAnnotation.
IsOblivious
())))
450
Debug.Assert(newTypeWithModifiers.NullableAnnotation.
IsOblivious
() || (typeSymbol.IsNullableType() && newTypeWithModifiers.NullableAnnotation.IsAnnotated()));
459
else if ((NullableAnnotation.
IsOblivious
() || (typeSymbol.IsNullableType() && NullableAnnotation.IsAnnotated())) &&
528
Debug.Assert(NullableAnnotation.
IsOblivious
());
529
Debug.Assert(newTypeWithModifiers.NullableAnnotation.
IsOblivious
());
563
return DefaultNullableAnnotation.
IsOblivious
() && ((object)DefaultType == other) &&
635
if (annotation.
IsOblivious
() || type.IsValueType)