41 references to BoundNodeAttributes
Microsoft.CodeAnalysis.CSharp (41)
BoundTree\BoundNode.cs (41)
18private BoundNodeAttributes _attributes; 69result._attributes &= BoundNodeAttributes.AttributesPreservedInClone; 90_attributes = BoundNodeAttributes.HasErrors; 129return (_attributes & BoundNodeAttributes.HasErrors) != 0; 135_attributes |= BoundNodeAttributes.HasErrors; 139Debug.Assert((_attributes & BoundNodeAttributes.HasErrors) == 0, 178_attributes |= BoundNodeAttributes.WasCompilerGeneratedIsChecked; 180return (_attributes & BoundNodeAttributes.CompilerGenerated) != 0; 185Debug.Assert((_attributes & BoundNodeAttributes.WasCompilerGeneratedIsChecked) == 0, 191_attributes |= BoundNodeAttributes.CompilerGenerated; 195Debug.Assert((_attributes & BoundNodeAttributes.CompilerGenerated) == 0, 207Debug.Assert((_attributes & BoundNodeAttributes.WasCompilerGeneratedIsChecked) == 0, 212_attributes |= BoundNodeAttributes.CompilerGenerated; 216_attributes &= ~BoundNodeAttributes.CompilerGenerated; 229_attributes |= BoundNodeAttributes.WasTopLevelNullabilityChecked; 240Debug.Assert((_attributes & BoundNodeAttributes.WasTopLevelNullabilityChecked) == 0, 243_attributes &= ~(BoundNodeAttributes.TopLevelAnnotationMask | BoundNodeAttributes.TopLevelFlowStateMaybeNull); 247CodeAnalysis.NullableAnnotation.Annotated => BoundNodeAttributes.TopLevelAnnotated, 248CodeAnalysis.NullableAnnotation.NotAnnotated => BoundNodeAttributes.TopLevelNotAnnotated, 249CodeAnalysis.NullableAnnotation.None => BoundNodeAttributes.TopLevelNone, 256_attributes |= BoundNodeAttributes.TopLevelFlowStateMaybeNull; 277if ((_attributes & BoundNodeAttributes.TopLevelAnnotationMask) == 0) 282var annotation = (_attributes & BoundNodeAttributes.TopLevelAnnotationMask) switch 284BoundNodeAttributes.TopLevelAnnotated => CodeAnalysis.NullableAnnotation.Annotated, 285BoundNodeAttributes.TopLevelNotAnnotated => CodeAnalysis.NullableAnnotation.NotAnnotated, 286BoundNodeAttributes.TopLevelNone => CodeAnalysis.NullableAnnotation.None, 290var flowState = (_attributes & BoundNodeAttributes.TopLevelFlowStateMaybeNull) == 0 ? CodeAnalysis.NullableFlowState.NotNull : CodeAnalysis.NullableFlowState.MaybeNull; 300return (_attributes & BoundNodeAttributes.IsSuppressed) != 0; 304Debug.Assert((_attributes & BoundNodeAttributes.IsSuppressed) == 0, "flag should not be set twice or reset"); 307_attributes |= BoundNodeAttributes.IsSuppressed; 322return (_attributes & BoundNodeAttributes.WasConverted) != 0; 326Debug.Assert((_attributes & BoundNodeAttributes.WasConverted) == 0, "WasConverted flag should not be set twice or reset"); 329_attributes |= BoundNodeAttributes.WasConverted; 338return (_attributes & BoundNodeAttributes.WasPropertyBackingFieldAccessChecked) != 0; 342Debug.Assert((_attributes & BoundNodeAttributes.WasPropertyBackingFieldAccessChecked) == 0, "should not be set twice or reset"); 345_attributes |= BoundNodeAttributes.WasPropertyBackingFieldAccessChecked; 355return (_attributes & BoundNodeAttributes.ParamsArrayOrCollection) != 0; 359RoslynDebug.Assert((_attributes & BoundNodeAttributes.ParamsArrayOrCollection) == 0, $"{nameof(BoundNodeAttributes.ParamsArrayOrCollection)} flag should not be set twice or reset"); 372_attributes |= BoundNodeAttributes.ParamsArrayOrCollection;