30 references to MaybeNull
Microsoft.CodeAnalysis.CSharp (30)
FlowAnalysis\NullableWalker.cs (18)
1272
bool hasMaybeNullWhenFalse = (annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.MaybeNullWhenFalse;
1280
bool hasMaybeNullWhenTrue = (annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.MaybeNullWhenTrue;
2408
bool overridingHasMaybeNull = (overridingAnnotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
;
2409
bool overriddenHasMaybeNull = (overriddenAnnotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
;
2467
return makeUnconditionalAnnotationCore(unconditionalAnnotationWhenTrue, FlowAnalysisAnnotations.MaybeNullWhenTrue, FlowAnalysisAnnotations.
MaybeNull
);
2471
return makeUnconditionalAnnotationCore(unconditionalAnnotationWhenFalse, FlowAnalysisAnnotations.MaybeNullWhenFalse, FlowAnalysisAnnotations.
MaybeNull
);
6585
return annotations & (FlowAnalysisAnnotations.
MaybeNull
| FlowAnalysisAnnotations.NotNull);
6609
bool hasMaybeNullWhenTrue = (annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.MaybeNullWhenTrue;
6610
bool hasMaybeNullWhenFalse = (annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.MaybeNullWhenFalse;
6613
annotations &= ~FlowAnalysisAnnotations.
MaybeNull
;
6649
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
)
6659
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
)
7634
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) != 0)
10073
if ((outwardAnnotations & FlowAnalysisAnnotations.
MaybeNull
) != 0)
Symbols\Metadata\PE\PEFieldSymbol.cs (4)
55
Debug.Assert((value & ~(FlowAnalysisAnnotations.DisallowNull | FlowAnalysisAnnotations.AllowNull | FlowAnalysisAnnotations.
MaybeNull
| FlowAnalysisAnnotations.NotNull)) == 0);
60
if ((value & FlowAnalysisAnnotations.
MaybeNull
) != 0) bitsToSet |= PackedFlags.HasMaybeNullAttribute;
72
if ((theBits & PackedFlags.HasMaybeNullAttribute) != 0) value |= FlowAnalysisAnnotations.
MaybeNull
;
420
if (module.HasAttribute(handle, AttributeDescription.MaybeNullAttribute)) annotations |= FlowAnalysisAnnotations.
MaybeNull
;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
800
annotations |= FlowAnalysisAnnotations.
MaybeNull
;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
253
if (attributeData.HasMaybeNullAttribute) annotations |= FlowAnalysisAnnotations.
MaybeNull
;
Symbols\Source\SourceComplexParameterSymbol.cs (1)
163
annotations |= FlowAnalysisAnnotations.
MaybeNull
;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1619
annotations |= FlowAnalysisAnnotations.
MaybeNull
;
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
366
result |= FlowAnalysisAnnotations.
MaybeNull
;
794
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) != 0)
Symbols\TypeWithState.cs (2)
48
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
)