18 writes to _bits
Microsoft.CodeAnalysis.CSharp (18)
Symbols\Metadata\PE\PEMethodSymbol.cs (18)
124_bits = (_bits & ~(MethodKindMask << MethodKindOffset)) | (((int)value & MethodKindMask) << MethodKindOffset) | MethodKindIsPopulatedBit; 171ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 178ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 186ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 196ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 201ThreadSafeFlagOperations.Set(ref _bits, IsObsoleteAttributePopulatedBit); 206ThreadSafeFlagOperations.Set(ref _bits, IsCustomAttributesPopulatedBit); 211ThreadSafeFlagOperations.Set(ref _bits, IsUseSiteDiagnosticPopulatedBit); 216ThreadSafeFlagOperations.Set(ref _bits, IsConditionalPopulatedBit); 221ThreadSafeFlagOperations.Set(ref _bits, IsOverriddenOrHiddenMembersPopulatedBit); 231return ThreadSafeFlagOperations.Set(ref _bits, (((int)value.ToNullableContextFlags() & NullableContextMask) << NullableContextOffset)); 239return ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 244ThreadSafeFlagOperations.Set(ref _bits, IsMemberNotNullPopulatedBit); 251ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 256ThreadSafeFlagOperations.Set(ref _bits, IsUnmanagedCallersOnlyAttributePopulatedBit); 264return ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 272return ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 277ThreadSafeFlagOperations.Set(ref _bits, OverloadResolutionPriorityPopulatedBit);
32 references to _bits
Microsoft.CodeAnalysis.CSharp (32)
Symbols\Metadata\PE\PEMethodSymbol.cs (32)
118return (MethodKind)((_bits >> MethodKindOffset) & MethodKindMask); 124_bits = (_bits & ~(MethodKindMask << MethodKindOffset)) | (((int)value & MethodKindMask) << MethodKindOffset) | MethodKindIsPopulatedBit; 128public bool MethodKindIsPopulated => (_bits & MethodKindIsPopulatedBit) != 0; 129public bool IsExtensionMethod => (_bits & IsExtensionMethodBit) != 0; 130public bool IsExtensionMethodIsPopulated => (_bits & IsExtensionMethodIsPopulatedBit) != 0; 131public bool IsExplicitFinalizerOverride => (_bits & IsExplicitFinalizerOverrideBit) != 0; 132public bool IsExplicitClassOverride => (_bits & IsExplicitClassOverrideBit) != 0; 133public bool IsExplicitOverrideIsPopulated => (_bits & IsExplicitOverrideIsPopulatedBit) != 0; 134public bool IsObsoleteAttributePopulated => (_bits & IsObsoleteAttributePopulatedBit) != 0; 135public bool IsCustomAttributesPopulated => (_bits & IsCustomAttributesPopulatedBit) != 0; 136public bool IsUseSiteDiagnosticPopulated => (_bits & IsUseSiteDiagnosticPopulatedBit) != 0; 137public bool IsConditionalPopulated => (_bits & IsConditionalPopulatedBit) != 0; 138public bool IsOverriddenOrHiddenMembersPopulated => (_bits & IsOverriddenOrHiddenMembersPopulatedBit) != 0; 139public bool IsReadOnly => (_bits & IsReadOnlyBit) != 0; 140public bool IsReadOnlyPopulated => (_bits & IsReadOnlyPopulatedBit) != 0; 141public bool DoesNotReturn => (_bits & DoesNotReturnBit) != 0; 142public bool IsDoesNotReturnPopulated => (_bits & IsDoesNotReturnPopulatedBit) != 0; 143public bool IsMemberNotNullPopulated => (_bits & IsMemberNotNullPopulatedBit) != 0; 144public bool IsInitOnly => (_bits & IsInitOnlyBit) != 0; 145public bool IsInitOnlyPopulated => (_bits & IsInitOnlyPopulatedBit) != 0; 146public bool IsUnmanagedCallersOnlyAttributePopulated => (_bits & IsUnmanagedCallersOnlyAttributePopulatedBit) != 0; 147public bool HasSetsRequiredMembers => (_bits & HasSetsRequiredMembersBit) != 0; 148public bool HasSetsRequiredMembersPopulated => (_bits & HasSetsRequiredMembersPopulatedBit) != 0; 149public bool IsUnscopedRef => (_bits & IsUnscopedRefBit) != 0; 150public bool IsUnscopedRefPopulated => (_bits & IsUnscopedRefPopulatedBit) != 0; 151public bool IsOverloadResolutionPriorityPopulated => (_bits & OverloadResolutionPriorityPopulatedBit) != 0; 170Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 177Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 185Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 195Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 226return ((NullableContextKind)((_bits >> NullableContextOffset) & NullableContextMask)).TryGetByte(out value); 250Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet));