34 references to BoundNodeAttributes
Microsoft.CodeAnalysis.CSharp (34)
BoundTree\BoundNode.cs (34)
18private BoundNodeAttributes _attributes; 62result._attributes &= BoundNodeAttributes.AttributesPreservedInClone; 83_attributes = BoundNodeAttributes.HasErrors; 122return (_attributes & BoundNodeAttributes.HasErrors) != 0; 128_attributes |= BoundNodeAttributes.HasErrors; 132Debug.Assert((_attributes & BoundNodeAttributes.HasErrors) == 0, 165_attributes |= BoundNodeAttributes.WasCompilerGeneratedIsChecked; 167return (_attributes & BoundNodeAttributes.CompilerGenerated) != 0; 172Debug.Assert((_attributes & BoundNodeAttributes.WasCompilerGeneratedIsChecked) == 0, 178_attributes |= BoundNodeAttributes.CompilerGenerated; 182Debug.Assert((_attributes & BoundNodeAttributes.CompilerGenerated) == 0, 194Debug.Assert((_attributes & BoundNodeAttributes.WasCompilerGeneratedIsChecked) == 0, 199_attributes |= BoundNodeAttributes.CompilerGenerated; 203_attributes &= ~BoundNodeAttributes.CompilerGenerated; 216_attributes |= BoundNodeAttributes.WasTopLevelNullabilityChecked; 227Debug.Assert((_attributes & BoundNodeAttributes.WasTopLevelNullabilityChecked) == 0, 230_attributes &= ~(BoundNodeAttributes.TopLevelAnnotationMask | BoundNodeAttributes.TopLevelFlowStateMaybeNull); 234CodeAnalysis.NullableAnnotation.Annotated => BoundNodeAttributes.TopLevelAnnotated, 235CodeAnalysis.NullableAnnotation.NotAnnotated => BoundNodeAttributes.TopLevelNotAnnotated, 236CodeAnalysis.NullableAnnotation.None => BoundNodeAttributes.TopLevelNone, 243_attributes |= BoundNodeAttributes.TopLevelFlowStateMaybeNull; 264if ((_attributes & BoundNodeAttributes.TopLevelAnnotationMask) == 0) 269var annotation = (_attributes & BoundNodeAttributes.TopLevelAnnotationMask) switch 271BoundNodeAttributes.TopLevelAnnotated => CodeAnalysis.NullableAnnotation.Annotated, 272BoundNodeAttributes.TopLevelNotAnnotated => CodeAnalysis.NullableAnnotation.NotAnnotated, 273BoundNodeAttributes.TopLevelNone => CodeAnalysis.NullableAnnotation.None, 277var flowState = (_attributes & BoundNodeAttributes.TopLevelFlowStateMaybeNull) == 0 ? CodeAnalysis.NullableFlowState.NotNull : CodeAnalysis.NullableFlowState.MaybeNull; 287return (_attributes & BoundNodeAttributes.IsSuppressed) != 0; 291Debug.Assert((_attributes & BoundNodeAttributes.IsSuppressed) == 0, "flag should not be set twice or reset"); 294_attributes |= BoundNodeAttributes.IsSuppressed; 309return (_attributes & BoundNodeAttributes.WasConverted) != 0; 313Debug.Assert((_attributes & BoundNodeAttributes.WasConverted) == 0, "WasConverted flag should not be set twice or reset"); 316_attributes |= BoundNodeAttributes.WasConverted;