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