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