30 references to MaybeNull
Microsoft.CodeAnalysis.CSharp (27)
FlowAnalysis\NullableWalker.cs (15)
1224
bool hasMaybeNullWhenFalse = (annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.MaybeNullWhenFalse;
1232
bool hasMaybeNullWhenTrue = (annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.MaybeNullWhenTrue;
2341
bool overridingHasMaybeNull = (overridingAnnotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
;
2342
bool overriddenHasMaybeNull = (overriddenAnnotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
;
2400
return makeUnconditionalAnnotationCore(unconditionalAnnotationWhenTrue, FlowAnalysisAnnotations.MaybeNullWhenTrue, FlowAnalysisAnnotations.
MaybeNull
);
2404
return makeUnconditionalAnnotationCore(unconditionalAnnotationWhenFalse, FlowAnalysisAnnotations.MaybeNullWhenFalse, FlowAnalysisAnnotations.
MaybeNull
);
6006
return annotations & (FlowAnalysisAnnotations.
MaybeNull
| FlowAnalysisAnnotations.NotNull);
6044
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
)
6054
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
)
6837
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) != 0)
9185
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
;
418
if (module.HasAttribute(handle, AttributeDescription.MaybeNullAttribute)) annotations |= FlowAnalysisAnnotations.
MaybeNull
;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
783
annotations |= FlowAnalysisAnnotations.
MaybeNull
;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
253
if (attributeData.HasMaybeNullAttribute) annotations |= FlowAnalysisAnnotations.
MaybeNull
;
Symbols\Source\SourceComplexParameterSymbol.cs (1)
157
annotations |= FlowAnalysisAnnotations.
MaybeNull
;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1180
annotations |= FlowAnalysisAnnotations.
MaybeNull
;
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
367
result |= FlowAnalysisAnnotations.
MaybeNull
;
771
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) != 0)
Symbols\TypeWithState.cs (2)
48
if ((annotations & FlowAnalysisAnnotations.
MaybeNull
) == FlowAnalysisAnnotations.
MaybeNull
)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\LambdaTests.cs (1)
4199
Assert.Equal(FlowAnalysisAnnotations.
MaybeNull
| FlowAnalysisAnnotations.NotNull, lambdas[0].ReturnTypeFlowAnalysisAnnotations);
Semantics\NullableReferenceTypesTests.cs (2)
28267
Assert.Equal(FlowAnalysisAnnotations.
MaybeNull
, getter.ReturnTypeFlowAnalysisAnnotations);
28370
Assert.Equal(FlowAnalysisAnnotations.
MaybeNull
| FlowAnalysisAnnotations.NotNull, getter.ReturnTypeFlowAnalysisAnnotations);