Symbols\TypeWithAnnotations.cs (15)
55Debug.Assert(defaultType?.IsNullableType() != true || defaultAnnotation == NullableAnnotation.Annotated);
82return Create(typeSymbol, nullableAnnotation: isAnnotated ? NullableAnnotation.Annotated : isNullableEnabled ? NullableAnnotation.NotAnnotated : NullableAnnotation.Oblivious);
100nullableAnnotation = NullableAnnotation.Annotated;
115return Create(Type, NullableAnnotation.Annotated, CustomModifiers);
138return NullableAnnotation.Annotated;
143return NullableAnnotation.Annotated;
156case NullableAnnotation.Annotated:
175return new TypeWithAnnotations(defaultType: underlying.DefaultType, defaultAnnotation: NullableAnnotation.Annotated, new LazyNullableTypeParameter(compilation, underlying));
204return CreateNonLazyType(typeSymbol, NullableAnnotation.Annotated, this.CustomModifiers);
488newAnnotation = NullableAnnotation.Annotated;
821return annotation switch { NullableAnnotation.Annotated => NullableFlowState.MaybeDefault, NullableAnnotation.NotAnnotated => NullableFlowState.MaybeNull, _ => NullableFlowState.NotNull };
825return annotation switch { NullableAnnotation.Annotated => NullableFlowState.MaybeDefault, _ => NullableFlowState.NotNull };
831return annotation switch { NullableAnnotation.Annotated => NullableFlowState.MaybeNull, _ => NullableFlowState.NotNull };
921return CreateNonLazyType(type.DefaultType, NullableAnnotation.Annotated, _customModifiers);
1024return CreateNonLazyType(type.DefaultType, NullableAnnotation.Annotated, _customModifiers);