43 references to NotAnnotated
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder.ValueChecks.cs (1)
3000
=> TypeWithAnnotations.Create(_type, NullableAnnotation.
NotAnnotated
);
Binder\Binder_Patterns.cs (2)
332
declType: TypeWithAnnotations.Create(narrowedType, NullableAnnotation.
NotAnnotated
),
942
return TypeWithAnnotations.Create(inputType.StrippedType(), NullableAnnotation.
NotAnnotated
);
Binder\Semantics\BestTypeInferrer.cs (1)
22
var result = NullableAnnotation.
NotAnnotated
;
FlowAnalysis\NullableWalker.cs (11)
4225
var result = new VisitResult(objectInitializer.Type, NullableAnnotation.
NotAnnotated
, NullableFlowState.NotNull);
4414
SetAnalyzedNullability(node.ImplicitReceiverOpt, new VisitResult(node.ImplicitReceiverOpt.Type, NullableAnnotation.
NotAnnotated
, NullableFlowState.NotNull));
4529
return GetOrCreatePlaceholderSlot(node, TypeWithAnnotations.Create(node.Type, NullableAnnotation.
NotAnnotated
));
5629
targetType = TypeWithAnnotations.Create(node.Type, NullableAnnotation.
NotAnnotated
);
7959
return expr.ConstantValueOpt == ConstantValue.NotAvailable || !expr.ConstantValueOpt.IsNull || expr.IsSuppressed ? NullableAnnotation.
NotAnnotated
: NullableAnnotation.Annotated;
7967
return NullableAnnotation.
NotAnnotated
;
9222
dependsOnTypeParameter(typeParameter1, (TypeParameterSymbol)targetType.Type, NullableAnnotation.
NotAnnotated
, out var annotation))
9255
bool dependsOn = dependsOnTypeParameter(typeParameter1, typeParameter2, NullableAnnotation.
NotAnnotated
, out var annotation);
9791
var argTypeWithAnnotations = TypeWithAnnotations.Create(argType, NullableAnnotation.
NotAnnotated
);
9978
var lvalueResult = TypeWithAnnotations.Create(node.Type, NullableAnnotation.
NotAnnotated
);
11048
TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.
NotAnnotated
).ToTypeWithState();
FlowAnalysis\NullableWalker_Patterns.cs (1)
476
outputSlot = makeDagTempSlot(TypeWithAnnotations.Create(e.Type, NullableAnnotation.
NotAnnotated
), output);
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ToStringMethodSymbol.cs (1)
49
get { return TypeWithAnnotations.Create(this.Manager.System_String, NullableAnnotation.
NotAnnotated
); }
Symbols\ConstraintsHelper.cs (1)
1611
case NullableAnnotation.
NotAnnotated
:
Symbols\NullableAnnotationExtensions.cs (4)
18
public static bool IsNotAnnotated(this NullableAnnotation annotation) => annotation == NullableAnnotation.
NotAnnotated
;
77
/// The attribute (metadata) representation of <see cref="NullableAnnotation.
NotAnnotated
"/>.
132
NullableAnnotation.
NotAnnotated
=> CodeAnalysis.NullableAnnotation.NotAnnotated,
152
CodeAnalysis.NullableAnnotation.NotAnnotated => CSharp.NullableAnnotation.
NotAnnotated
,
Symbols\PublicModel\Symbol.cs (1)
25
builder.Add(TypeWithAnnotations.Create(type, (typeArg?.NullableAnnotation.ToInternalAnnotation() ?? NullableAnnotation.
NotAnnotated
)));
Symbols\Source\ThisParameterSymbol.cs (1)
141
=> TypeWithAnnotations.Create(_containingType, NullableAnnotation.
NotAnnotated
);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
82
return (TypeWithAnnotations.Create(Binder.GetWellKnownType(DeclaringCompilation, WellKnownType.System_Type, diagnostics, Location), NullableAnnotation.
NotAnnotated
),
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
93
var annotation = ContainingType.IsRecordStruct ? NullableAnnotation.Oblivious : NullableAnnotation.
NotAnnotated
;
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
42
var annotation = ContainingType.IsRecordStruct ? NullableAnnotation.Oblivious : NullableAnnotation.
NotAnnotated
;
Symbols\TypeWithAnnotations.cs (13)
82
return Create(typeSymbol, nullableAnnotation: isAnnotated ? NullableAnnotation.Annotated : isNullableEnabled ? NullableAnnotation.
NotAnnotated
: NullableAnnotation.Oblivious);
96
case NullableAnnotation.
NotAnnotated
:
125
return Create(Type, NullableAnnotation.
NotAnnotated
, CustomModifiers);
159
case NullableAnnotation.
NotAnnotated
:
496
Debug.Assert(NullableAnnotation == NullableAnnotation.
NotAnnotated
);
505
newAnnotation = NullableAnnotation.
NotAnnotated
;
518
Debug.Assert(newTypeWithModifiers.NullableAnnotation is NullableAnnotation.
NotAnnotated
);
519
newAnnotation = NullableAnnotation.
NotAnnotated
;
732
return CreateNonLazyType(typeSymbol, NullableAnnotation.
NotAnnotated
, CustomModifiers);
821
return annotation switch { NullableAnnotation.Annotated => NullableFlowState.MaybeDefault, NullableAnnotation.
NotAnnotated
=> NullableFlowState.MaybeNull, _ => NullableFlowState.NotNull };
927
return CreateNonLazyType(defaultType, defaultType.IsNullableType() ? type.NullableAnnotation : NullableAnnotation.
NotAnnotated
, _customModifiers);
994
return NullableAnnotation.
NotAnnotated
;
1030
return CreateNonLazyType(defaultType, defaultType.IsNullableType() ? type.NullableAnnotation : NullableAnnotation.
NotAnnotated
, _customModifiers);
Symbols\TypeWithState.cs (3)
89
var type = TypeWithAnnotations.Create(Type, NullableAnnotation.
NotAnnotated
);
93
(Type?.IsValueType == true ? NullableAnnotation.
NotAnnotated
: NullableAnnotation.Annotated) :
94
(State.IsNotNull() || Type?.CanContainNull() == false ? NullableAnnotation.
NotAnnotated
: NullableAnnotation.Annotated);