13 writes to _attributes
Microsoft.CodeAnalysis.CSharp (13)
BoundTree\BoundNode.cs (13)
62
result.
_attributes
&= BoundNodeAttributes.AttributesPreservedInClone;
83
_attributes
= BoundNodeAttributes.HasErrors;
128
_attributes
|= BoundNodeAttributes.HasErrors;
165
_attributes
|= BoundNodeAttributes.WasCompilerGeneratedIsChecked;
178
_attributes
|= BoundNodeAttributes.CompilerGenerated;
199
_attributes
|= BoundNodeAttributes.CompilerGenerated;
203
_attributes
&= ~BoundNodeAttributes.CompilerGenerated;
216
_attributes
|= BoundNodeAttributes.WasTopLevelNullabilityChecked;
230
_attributes
&= ~(BoundNodeAttributes.TopLevelAnnotationMask | BoundNodeAttributes.TopLevelFlowStateMaybeNull);
232
_attributes
|= value.Annotation switch
243
_attributes
|= BoundNodeAttributes.TopLevelFlowStateMaybeNull;
294
_attributes
|= BoundNodeAttributes.IsSuppressed;
316
_attributes
|= BoundNodeAttributes.WasConverted;
14 references to _attributes
Microsoft.CodeAnalysis.CSharp (14)
BoundTree\BoundNode.cs (14)
122
return (
_attributes
& BoundNodeAttributes.HasErrors) != 0;
132
Debug.Assert((
_attributes
& BoundNodeAttributes.HasErrors) == 0,
167
return (
_attributes
& BoundNodeAttributes.CompilerGenerated) != 0;
172
Debug.Assert((
_attributes
& BoundNodeAttributes.WasCompilerGeneratedIsChecked) == 0,
182
Debug.Assert((
_attributes
& BoundNodeAttributes.CompilerGenerated) == 0,
194
Debug.Assert((
_attributes
& BoundNodeAttributes.WasCompilerGeneratedIsChecked) == 0,
227
Debug.Assert((
_attributes
& BoundNodeAttributes.WasTopLevelNullabilityChecked) == 0,
264
if ((
_attributes
& BoundNodeAttributes.TopLevelAnnotationMask) == 0)
269
var annotation = (
_attributes
& BoundNodeAttributes.TopLevelAnnotationMask) switch
277
var flowState = (
_attributes
& BoundNodeAttributes.TopLevelFlowStateMaybeNull) == 0 ? CodeAnalysis.NullableFlowState.NotNull : CodeAnalysis.NullableFlowState.MaybeNull;
287
return (
_attributes
& BoundNodeAttributes.IsSuppressed) != 0;
291
Debug.Assert((
_attributes
& BoundNodeAttributes.IsSuppressed) == 0, "flag should not be set twice or reset");
309
return (
_attributes
& BoundNodeAttributes.WasConverted) != 0;
313
Debug.Assert((
_attributes
& BoundNodeAttributes.WasConverted) == 0, "WasConverted flag should not be set twice or reset");