29 writes to _bits
Microsoft.CodeAnalysis.CSharp (29)
Symbols\Metadata\PE\PEMethodSymbol.cs (29)
130
_bits
= (_bits & ~(MethodKindMask << MethodKindOffset)) | (((long)value & MethodKindMask) << MethodKindOffset) | MethodKindIsPopulatedBit;
140
public bool IsObsoleteAttributePopulated => (Volatile.Read(ref
_bits
) & IsObsoleteAttributePopulatedBit) != 0;
141
public bool IsCustomAttributesPopulated => (Volatile.Read(ref
_bits
) & IsCustomAttributesPopulatedBit) != 0;
142
public bool IsUseSiteDiagnosticPopulated => (Volatile.Read(ref
_bits
) & IsUseSiteDiagnosticPopulatedBit) != 0;
143
public bool IsConditionalPopulated => (Volatile.Read(ref
_bits
) & IsConditionalPopulatedBit) != 0;
144
public bool IsOverriddenOrHiddenMembersPopulated => (Volatile.Read(ref
_bits
) & IsOverriddenOrHiddenMembersPopulatedBit) != 0;
149
public bool IsMemberNotNullPopulated => (Volatile.Read(ref
_bits
) & IsMemberNotNullPopulatedBit) != 0;
152
public bool IsUnmanagedCallersOnlyAttributePopulated => (Volatile.Read(ref
_bits
) & IsUnmanagedCallersOnlyAttributePopulatedBit) != 0;
157
public bool IsOverloadResolutionPriorityPopulated => (Volatile.Read(ref
_bits
) & OverloadResolutionPriorityPopulatedBit) != 0;
158
public bool RequiresUnsafe => (Volatile.Read(ref
_bits
) & RequiresUnsafeBit) != 0;
159
public bool RequiresUnsafePopulated => (Volatile.Read(ref
_bits
) & RequiresUnsafePopulatedBit) != 0;
179
ThreadSafeFlagOperations.Set(ref
_bits
, bitsToSet);
186
ThreadSafeFlagOperations.Set(ref
_bits
, bitsToSet);
194
ThreadSafeFlagOperations.Set(ref
_bits
, bitsToSet);
204
ThreadSafeFlagOperations.Set(ref
_bits
, bitsToSet);
209
ThreadSafeFlagOperations.Set(ref
_bits
, IsObsoleteAttributePopulatedBit);
214
ThreadSafeFlagOperations.Set(ref
_bits
, IsCustomAttributesPopulatedBit);
219
ThreadSafeFlagOperations.Set(ref
_bits
, IsUseSiteDiagnosticPopulatedBit);
224
ThreadSafeFlagOperations.Set(ref
_bits
, IsConditionalPopulatedBit);
229
ThreadSafeFlagOperations.Set(ref
_bits
, IsOverriddenOrHiddenMembersPopulatedBit);
239
return ThreadSafeFlagOperations.Set(ref
_bits
, (((long)value.ToNullableContextFlags() & NullableContextMask) << NullableContextOffset));
247
return ThreadSafeFlagOperations.Set(ref
_bits
, bitsToSet);
252
ThreadSafeFlagOperations.Set(ref
_bits
, IsMemberNotNullPopulatedBit);
259
ThreadSafeFlagOperations.Set(ref
_bits
, bitsToSet);
264
ThreadSafeFlagOperations.Set(ref
_bits
, IsUnmanagedCallersOnlyAttributePopulatedBit);
272
return ThreadSafeFlagOperations.Set(ref
_bits
, bitsToSet);
280
return ThreadSafeFlagOperations.Set(ref
_bits
, bitsToSet);
285
ThreadSafeFlagOperations.Set(ref
_bits
, OverloadResolutionPriorityPopulatedBit);
293
return ThreadSafeFlagOperations.Set(ref
_bits
, bitsToSet);
24 references to _bits
Microsoft.CodeAnalysis.CSharp (24)
Symbols\Metadata\PE\PEMethodSymbol.cs (24)
124
return (MethodKind)((
_bits
>> MethodKindOffset) & MethodKindMask);
130
_bits = (
_bits
& ~(MethodKindMask << MethodKindOffset)) | (((long)value & MethodKindMask) << MethodKindOffset) | MethodKindIsPopulatedBit;
134
public bool MethodKindIsPopulated => (
_bits
& MethodKindIsPopulatedBit) != 0;
135
public bool IsExtensionMethod => (
_bits
& IsExtensionMethodBit) != 0;
136
public bool IsExtensionMethodIsPopulated => (
_bits
& IsExtensionMethodIsPopulatedBit) != 0;
137
public bool IsExplicitFinalizerOverride => (
_bits
& IsExplicitFinalizerOverrideBit) != 0;
138
public bool IsExplicitClassOverride => (
_bits
& IsExplicitClassOverrideBit) != 0;
139
public bool IsExplicitOverrideIsPopulated => (
_bits
& IsExplicitOverrideIsPopulatedBit) != 0;
145
public bool IsReadOnly => (
_bits
& IsReadOnlyBit) != 0;
146
public bool IsReadOnlyPopulated => (
_bits
& IsReadOnlyPopulatedBit) != 0;
147
public bool DoesNotReturn => (
_bits
& DoesNotReturnBit) != 0;
148
public bool IsDoesNotReturnPopulated => (
_bits
& IsDoesNotReturnPopulatedBit) != 0;
150
public bool IsInitOnly => (
_bits
& IsInitOnlyBit) != 0;
151
public bool IsInitOnlyPopulated => (
_bits
& IsInitOnlyPopulatedBit) != 0;
153
public bool HasSetsRequiredMembers => (
_bits
& HasSetsRequiredMembersBit) != 0;
154
public bool HasSetsRequiredMembersPopulated => (
_bits
& HasSetsRequiredMembersPopulatedBit) != 0;
155
public bool IsUnscopedRef => (
_bits
& IsUnscopedRefBit) != 0;
156
public bool IsUnscopedRefPopulated => (
_bits
& IsUnscopedRefPopulatedBit) != 0;
178
Debug.Assert(BitsAreUnsetOrSame(
_bits
, bitsToSet));
185
Debug.Assert(BitsAreUnsetOrSame(
_bits
, bitsToSet));
193
Debug.Assert(BitsAreUnsetOrSame(
_bits
, bitsToSet));
203
Debug.Assert(BitsAreUnsetOrSame(
_bits
, bitsToSet));
234
return ((NullableContextKind)((
_bits
>> NullableContextOffset) & NullableContextMask)).TryGetByte(out value);
258
Debug.Assert(BitsAreUnsetOrSame(
_bits
, bitsToSet));