30 references to MaybeNull
Microsoft.CodeAnalysis.CSharp (30)
FlowAnalysis\NullableWalker.cs (18)
1333
bool hasMaybeNullWhenFalse = (annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.MaybeNullWhenFalse;
1341
bool hasMaybeNullWhenTrue = (annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.MaybeNullWhenTrue;
2469
bool overridingHasMaybeNull = (overridingAnnotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
;
2470
bool overriddenHasMaybeNull = (overriddenAnnotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
;
2528
return makeUnconditionalAnnotationCore(unconditionalAnnotationWhenTrue, FlowAnalysisAnnotations.MaybeNullWhenTrue, FlowAnalysisAnnotations.
MaybeNull
);
2532
return makeUnconditionalAnnotationCore(unconditionalAnnotationWhenFalse, FlowAnalysisAnnotations.MaybeNullWhenFalse, FlowAnalysisAnnotations.
MaybeNull
);
6646
return annotations & (FlowAnalysisAnnotations.
MaybeNull
| FlowAnalysisAnnotations.NotNull);
6670
bool hasMaybeNullWhenTrue = (annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.MaybeNullWhenTrue;
6671
bool hasMaybeNullWhenFalse = (annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.MaybeNullWhenFalse;
6674
annotations &= ~FlowAnalysisAnnotations.
MaybeNull
;
6710
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
)
6720
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
)
7692
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) != 0)
10131
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)
1625
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
)