17 writes to _bits
Microsoft.CodeAnalysis.CSharp (17)
Symbols\Metadata\PE\PEMethodSymbol.cs (17)
122_bits = (_bits & ~(MethodKindMask << MethodKindOffset)) | (((int)value & MethodKindMask) << MethodKindOffset) | MethodKindIsPopulatedBit; 168ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 175ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 183ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 193ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 198ThreadSafeFlagOperations.Set(ref _bits, IsObsoleteAttributePopulatedBit); 203ThreadSafeFlagOperations.Set(ref _bits, IsCustomAttributesPopulatedBit); 208ThreadSafeFlagOperations.Set(ref _bits, IsUseSiteDiagnosticPopulatedBit); 213ThreadSafeFlagOperations.Set(ref _bits, IsConditionalPopulatedBit); 218ThreadSafeFlagOperations.Set(ref _bits, IsOverriddenOrHiddenMembersPopulatedBit); 228return ThreadSafeFlagOperations.Set(ref _bits, (((int)value.ToNullableContextFlags() & NullableContextMask) << NullableContextOffset)); 236return ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 241ThreadSafeFlagOperations.Set(ref _bits, IsMemberNotNullPopulatedBit); 248ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 253ThreadSafeFlagOperations.Set(ref _bits, IsUnmanagedCallersOnlyAttributePopulatedBit); 261return ThreadSafeFlagOperations.Set(ref _bits, bitsToSet); 269return ThreadSafeFlagOperations.Set(ref _bits, bitsToSet);
31 references to _bits
Microsoft.CodeAnalysis.CSharp (31)
Symbols\Metadata\PE\PEMethodSymbol.cs (31)
116return (MethodKind)((_bits >> MethodKindOffset) & MethodKindMask); 122_bits = (_bits & ~(MethodKindMask << MethodKindOffset)) | (((int)value & MethodKindMask) << MethodKindOffset) | MethodKindIsPopulatedBit; 126public bool MethodKindIsPopulated => (_bits & MethodKindIsPopulatedBit) != 0; 127public bool IsExtensionMethod => (_bits & IsExtensionMethodBit) != 0; 128public bool IsExtensionMethodIsPopulated => (_bits & IsExtensionMethodIsPopulatedBit) != 0; 129public bool IsExplicitFinalizerOverride => (_bits & IsExplicitFinalizerOverrideBit) != 0; 130public bool IsExplicitClassOverride => (_bits & IsExplicitClassOverrideBit) != 0; 131public bool IsExplicitOverrideIsPopulated => (_bits & IsExplicitOverrideIsPopulatedBit) != 0; 132public bool IsObsoleteAttributePopulated => (_bits & IsObsoleteAttributePopulatedBit) != 0; 133public bool IsCustomAttributesPopulated => (_bits & IsCustomAttributesPopulatedBit) != 0; 134public bool IsUseSiteDiagnosticPopulated => (_bits & IsUseSiteDiagnosticPopulatedBit) != 0; 135public bool IsConditionalPopulated => (_bits & IsConditionalPopulatedBit) != 0; 136public bool IsOverriddenOrHiddenMembersPopulated => (_bits & IsOverriddenOrHiddenMembersPopulatedBit) != 0; 137public bool IsReadOnly => (_bits & IsReadOnlyBit) != 0; 138public bool IsReadOnlyPopulated => (_bits & IsReadOnlyPopulatedBit) != 0; 139public bool DoesNotReturn => (_bits & DoesNotReturnBit) != 0; 140public bool IsDoesNotReturnPopulated => (_bits & IsDoesNotReturnPopulatedBit) != 0; 141public bool IsMemberNotNullPopulated => (_bits & IsMemberNotNullPopulatedBit) != 0; 142public bool IsInitOnly => (_bits & IsInitOnlyBit) != 0; 143public bool IsInitOnlyPopulated => (_bits & IsInitOnlyPopulatedBit) != 0; 144public bool IsUnmanagedCallersOnlyAttributePopulated => (_bits & IsUnmanagedCallersOnlyAttributePopulatedBit) != 0; 145public bool HasSetsRequiredMembers => (_bits & HasSetsRequiredMembersBit) != 0; 146public bool HasSetsRequiredMembersPopulated => (_bits & HasSetsRequiredMembersPopulatedBit) != 0; 147public bool IsUnscopedRef => (_bits & IsUnscopedRefBit) != 0; 148public bool IsUnscopedRefPopulated => (_bits & IsUnscopedRefPopulatedBit) != 0; 167Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 174Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 182Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 192Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet)); 223return ((NullableContextKind)((_bits >> NullableContextOffset) & NullableContextMask)).TryGetByte(out value); 247Debug.Assert(BitsAreUnsetOrSame(_bits, bitsToSet));