26 writes to _bits
Microsoft.CodeAnalysis.CSharp (26)
Symbols\Metadata\PE\PEMethodSymbol.cs (26)
125_bits = (_bits & ~(MethodKindMask << MethodKindOffset)) | (((int)value & MethodKindMask) << MethodKindOffset) | MethodKindIsPopulatedBit; 135public bool IsObsoleteAttributePopulated => (Volatile.Read(ref _bits) & IsObsoleteAttributePopulatedBit) != 0; 136public bool IsCustomAttributesPopulated => (Volatile.Read(ref _bits) & IsCustomAttributesPopulatedBit) != 0; 137public bool IsUseSiteDiagnosticPopulated => (Volatile.Read(ref _bits) & IsUseSiteDiagnosticPopulatedBit) != 0; 138public bool IsConditionalPopulated => (Volatile.Read(ref _bits) & IsConditionalPopulatedBit) != 0; 139public bool IsOverriddenOrHiddenMembersPopulated => (Volatile.Read(ref _bits) & IsOverriddenOrHiddenMembersPopulatedBit) != 0; 144public bool IsMemberNotNullPopulated => (Volatile.Read(ref _bits) & IsMemberNotNullPopulatedBit) != 0; 147public bool IsUnmanagedCallersOnlyAttributePopulated => (Volatile.Read(ref _bits) & IsUnmanagedCallersOnlyAttributePopulatedBit) != 0; 152public bool IsOverloadResolutionPriorityPopulated => (Volatile.Read(ref _bits) & OverloadResolutionPriorityPopulatedBit) != 0; 172ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 179ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 187ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 197ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 202ThreadSafeFlagOperations.Set(ref _bits, IsObsoleteAttributePopulatedBit); 207ThreadSafeFlagOperations.Set(ref _bits, IsCustomAttributesPopulatedBit); 212ThreadSafeFlagOperations.Set(ref _bits, IsUseSiteDiagnosticPopulatedBit); 217ThreadSafeFlagOperations.Set(ref _bits, IsConditionalPopulatedBit); 222ThreadSafeFlagOperations.Set(ref _bits, IsOverriddenOrHiddenMembersPopulatedBit); 232return ThreadSafeFlagOperations.Set(ref _bits, (((int)value.ToNullableContextFlags() & NullableContextMask) << NullableContextOffset)); 240return ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 245ThreadSafeFlagOperations.Set(ref _bits, IsMemberNotNullPopulatedBit); 252ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 257ThreadSafeFlagOperations.Set(ref _bits, IsUnmanagedCallersOnlyAttributePopulatedBit); 265return ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 273return ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 278ThreadSafeFlagOperations.Set(ref _bits, OverloadResolutionPriorityPopulatedBit);
24 references to _bits
Microsoft.CodeAnalysis.CSharp (24)
Symbols\Metadata\PE\PEMethodSymbol.cs (24)
119return (MethodKind)((_bits >> MethodKindOffset) & MethodKindMask); 125_bits = (_bits & ~(MethodKindMask << MethodKindOffset)) | (((int)value & MethodKindMask) << MethodKindOffset) | MethodKindIsPopulatedBit; 129public bool MethodKindIsPopulated => (_bits & MethodKindIsPopulatedBit) != 0; 130public bool IsExtensionMethod => (_bits & IsExtensionMethodBit) != 0; 131public bool IsExtensionMethodIsPopulated => (_bits & IsExtensionMethodIsPopulatedBit) != 0; 132public bool IsExplicitFinalizerOverride => (_bits & IsExplicitFinalizerOverrideBit) != 0; 133public bool IsExplicitClassOverride => (_bits & IsExplicitClassOverrideBit) != 0; 134public bool IsExplicitOverrideIsPopulated => (_bits & IsExplicitOverrideIsPopulatedBit) != 0; 140public bool IsReadOnly => (_bits & IsReadOnlyBit) != 0; 141public bool IsReadOnlyPopulated => (_bits & IsReadOnlyPopulatedBit) != 0; 142public bool DoesNotReturn => (_bits & DoesNotReturnBit) != 0; 143public bool IsDoesNotReturnPopulated => (_bits & IsDoesNotReturnPopulatedBit) != 0; 145public bool IsInitOnly => (_bits & IsInitOnlyBit) != 0; 146public bool IsInitOnlyPopulated => (_bits & IsInitOnlyPopulatedBit) != 0; 148public bool HasSetsRequiredMembers => (_bits & HasSetsRequiredMembersBit) != 0; 149public bool HasSetsRequiredMembersPopulated => (_bits & HasSetsRequiredMembersPopulatedBit) != 0; 150public bool IsUnscopedRef => (_bits & IsUnscopedRefBit) != 0; 151public bool IsUnscopedRefPopulated => (_bits & IsUnscopedRefPopulatedBit) != 0; 171Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 178Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 186Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 196Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 227return ((NullableContextKind)((_bits >> NullableContextOffset) & NullableContextMask)).TryGetByte(out value); 251Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet));