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