32 references to IsAnnotated
Microsoft.CodeAnalysis.CSharp (32)
Binder\Binder_Expressions.cs (3)
1385
else if (typeWithAnnotations.NullableAnnotation.
IsAnnotated
() && type.IsReferenceType)
1404
|| (typeWithAnnotations.NullableAnnotation.
IsAnnotated
() && !type.IsValueType)
5146
if (typeWithAnnotations.NullableAnnotation.
IsAnnotated
() && !type.IsNullableType())
Binder\Binder_Operators.cs (2)
3262
if (targetType.IsReferenceType && targetTypeWithAnnotations.NullableAnnotation.
IsAnnotated
())
3734
if (targetType.IsReferenceType && targetTypeWithAnnotations.NullableAnnotation.
IsAnnotated
())
Binder\Semantics\Conversions\ConversionsBase.cs (6)
1844
return destination.NullableAnnotation.
IsAnnotated
();
1849
return source.NullableAnnotation.
IsAnnotated
();
1852
return source.NullableAnnotation.
IsAnnotated
() == destination.NullableAnnotation.
IsAnnotated
();
1867
if (source.NullableAnnotation.IsOblivious() || destination.NullableAnnotation.IsOblivious() || destination.NullableAnnotation.
IsAnnotated
())
1877
return !source.NullableAnnotation.
IsAnnotated
();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
454
if (_conversions.IncludeNullability && _nullableAnnotationLowerBounds[i].
IsAnnotated
())
627
else if (IsUnfixedTypeParameter(target) && !target.NullableAnnotation.
IsAnnotated
() && kind is ExactOrBoundsKind.LowerBound)
1793
=> type.NullableAnnotation.
IsAnnotated
();
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
262
Debug.Assert(!type.NullableAnnotation.
IsAnnotated
());
FlowAnalysis\NullableWalker.cs (1)
9136
else if (fromExplicitCast && targetTypeWithNullability.NullableAnnotation.
IsAnnotated
() && !targetType.IsNullableType())
Symbols\ConstraintsHelper.cs (2)
1124
if (typeParameter.HasNotNullConstraint && typeArgument.GetValueNullableAnnotation().
IsAnnotated
() && !typeArgument.Type.IsNonNullableValueType())
1131
typeArgument.GetValueNullableAnnotation().
IsAnnotated
())
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
325
if (constraintType.NullableAnnotation.
IsAnnotated
() || isNotNullable == false)
Symbols\TypeParameterSymbol.cs (1)
479
if (constraintType.NullableAnnotation.
IsAnnotated
())
Symbols\TypeWithAnnotations.cs (12)
110
if (NullableAnnotation.
IsAnnotated
() || (Type.IsValueType && Type.IsNullableType()))
131
if (NullableAnnotation.
IsAnnotated
())
294
if (NullableAnnotation.
IsAnnotated
() &&
307
if (NullableAnnotation.
IsAnnotated
() &&
450
Debug.Assert(newTypeWithModifiers.NullableAnnotation.IsOblivious() || (typeSymbol.IsNullableType() && newTypeWithModifiers.NullableAnnotation.
IsAnnotated
()));
459
else if ((NullableAnnotation.IsOblivious() || (typeSymbol.IsNullableType() && NullableAnnotation.
IsAnnotated
())) &&
486
if (NullableAnnotation.
IsAnnotated
() || newTypeWithModifiers.NullableAnnotation.
IsAnnotated
())
639
else if (annotation.
IsAnnotated
())
710
!(result.NullableAnnotation.
IsAnnotated
() && oldTypeSymbol.IsNullableType())) // Preserve nullable annotation on Nullable<T>.
817
return annotation.
IsAnnotated
() ? NullableFlowState.MaybeDefault : NullableFlowState.NotNull;
1067
Debug.Assert(!underlying.NullableAnnotation.
IsAnnotated
());