17 references to AllowNull
Microsoft.CodeAnalysis.CSharp (17)
FlowAnalysis\NullableWalker.cs (7)
766
if ((annotations & FlowAnalysisAnnotations.
AllowNull
) != 0)
2926
if ((parameterAnnotations & FlowAnalysisAnnotations.
AllowNull
) != 0)
6692
else if ((flowAnalysisAnnotations & FlowAnalysisAnnotations.
AllowNull
) == FlowAnalysisAnnotations.
AllowNull
)
10104
return annotations & (FlowAnalysisAnnotations.DisallowNull | FlowAnalysisAnnotations.
AllowNull
);
10125
return annotations & (FlowAnalysisAnnotations.DisallowNull | FlowAnalysisAnnotations.
AllowNull
);
10134
annotations |= FlowAnalysisAnnotations.
AllowNull
;
Symbols\Metadata\PE\PEFieldSymbol.cs (4)
55
Debug.Assert((value & ~(FlowAnalysisAnnotations.DisallowNull | FlowAnalysisAnnotations.
AllowNull
| FlowAnalysisAnnotations.MaybeNull | FlowAnalysisAnnotations.NotNull)) == 0);
59
if ((value & FlowAnalysisAnnotations.
AllowNull
) != 0) bitsToSet |= PackedFlags.HasAllowNullAttribute;
71
if ((theBits & PackedFlags.HasAllowNullAttribute) != 0) value |= FlowAnalysisAnnotations.
AllowNull
;
418
if (module.HasAttribute(handle, AttributeDescription.AllowNullAttribute)) annotations |= FlowAnalysisAnnotations.
AllowNull
;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
795
if (module.HasAttribute(handle, AttributeDescription.AllowNullAttribute)) annotations |= FlowAnalysisAnnotations.
AllowNull
;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
251
if (attributeData.HasAllowNullAttribute) annotations |= FlowAnalysisAnnotations.
AllowNull
;
Symbols\Source\SourceComplexParameterSymbol.cs (1)
158
if (attributeData.HasAllowNullAttribute) annotations |= FlowAnalysisAnnotations.
AllowNull
;
Symbols\SymbolExtensions.cs (1)
464
annotations |= FlowAnalysisAnnotations.
AllowNull
;
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (2)
46
result |= FlowAnalysisAnnotations.
AllowNull
;
91
if ((annotations & FlowAnalysisAnnotations.
AllowNull
) != 0)