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