71 references to _packedFlags
Microsoft.CodeAnalysis.CSharp (71)
Symbols\Metadata\PE\PEMethodSymbol.cs (71)
283/// unfortunately, this means that we need to be careful of data races. The general pattern that we use is to check for a flag in <see cref="_packedFlags"/>. 300/// set the backing field using an atomic operation, and then set the flag in <see cref="_packedFlags"/>. This ensures that the field is always set before the flag is set. 328if (!_packedFlags.IsObsoleteAttributePopulated) 333if (!_packedFlags.IsUnmanagedCallersOnlyAttributePopulated) 349if (_packedFlags.IsCustomAttributesPopulated) 354if (_packedFlags.IsConditionalPopulated) 359if (_packedFlags.IsOverriddenOrHiddenMembersPopulated) 364if (_packedFlags.IsMemberNotNullPopulated) 371if (_packedFlags.IsExplicitOverrideIsPopulated) 395/// the computed value is a well-known "empty" value. In this case, bits in <see cref="_packedFlags"/> are used 608if (!_packedFlags.IsExplicitOverrideIsPopulated) 611Debug.Assert(_packedFlags.IsExplicitOverrideIsPopulated); 613return _packedFlags.IsExplicitFinalizerOverride; 621if (!_packedFlags.IsExplicitOverrideIsPopulated) 624Debug.Assert(_packedFlags.IsExplicitOverrideIsPopulated); 626return _packedFlags.IsExplicitClassOverride; 674if (!_packedFlags.IsDoesNotReturnPopulated) 678_packedFlags.InitializeDoesNotReturn(doesNotReturn); 681return _packedFlags.DoesNotReturn ? FlowAnalysisAnnotations.DoesNotReturn : FlowAnalysisAnnotations.None; 689if (!_packedFlags.IsMemberNotNullPopulated) 731_packedFlags.SetIsMemberNotNullPopulated(); 738if (!_packedFlags.IsMemberNotNullPopulated) 760if (!_packedFlags.IsMemberNotNullPopulated) 813_packedFlags.MethodKind == default(MethodKind) || 814_packedFlags.MethodKind == MethodKind.Ordinary || 815_packedFlags.MethodKind == MethodKind.ExplicitInterfaceImplementation); 817_packedFlags.MethodKind = methodKind; 972if (!_packedFlags.IsExtensionMethodIsPopulated) 981_packedFlags.InitializeIsExtensionMethod(isExtensionMethod); 983return _packedFlags.IsExtensionMethod; 993if (!_packedFlags.IsCustomAttributesPopulated) 1000bool isExtensionAlreadySet = _packedFlags.IsExtensionMethodIsPopulated; 1002? _packedFlags.IsExtensionMethod 1007bool isReadOnlyAlreadySet = _packedFlags.IsReadOnlyPopulated; 1009? _packedFlags.IsReadOnly 1043_packedFlags.InitializeIsExtensionMethod(isExtensionMethod); 1048_packedFlags.InitializeIsReadOnly(isReadOnly); 1058_packedFlags.SetIsCustomAttributesPopulated(); 1084if (!_packedFlags.TryGetNullableContext(out value)) 1089_packedFlags.SetNullableContext(value); 1103if (!_packedFlags.MethodKindIsPopulated) 1105_packedFlags.InitializeMethodKind(this.ComputeMethodKind()); 1107return _packedFlags.MethodKind; 1371_packedFlags.InitializeIsExplicitOverride(isExplicitFinalizerOverride: sawObjectFinalize, isExplicitClassOverride: anyToRemove); 1392if (!_packedFlags.IsReadOnlyPopulated) 1400_packedFlags.InitializeIsReadOnly(isReadOnly); 1402return _packedFlags.IsReadOnly; 1410if (!_packedFlags.IsInitOnlyPopulated) 1415_packedFlags.InitializeIsInitOnly(isInitOnly); 1417return _packedFlags.IsInitOnly; 1428if (!_packedFlags.IsUseSiteDiagnosticPopulated) 1509if (_packedFlags.IsUseSiteDiagnosticPopulated) 1519_packedFlags.SetIsUseSiteDiagnosticPopulated(); 1525if (!_packedFlags.IsConditionalPopulated) 1534_packedFlags.SetIsConditionalAttributePopulated(); 1557if (!_packedFlags.HasSetsRequiredMembersPopulated) 1560_packedFlags.InitializeSetsRequiredMembersBit(result); 1563return _packedFlags.HasSetsRequiredMembers; 1576if (!_packedFlags.IsObsoleteAttributePopulated) 1584_packedFlags.SetIsObsoleteAttributePopulated(); 1606if (!_packedFlags.IsUnmanagedCallersOnlyAttributePopulated) 1619_packedFlags.SetIsUnmanagedCallersOnlyAttributePopulated(); 1633if (!_packedFlags.IsOverriddenOrHiddenMembersPopulated) 1642_packedFlags.SetIsOverriddenOrHiddenMembersPopulated(); 1675internal bool TestIsExtensionBitSet => _packedFlags.IsExtensionMethodIsPopulated; 1678internal bool TestIsExtensionBitTrue => _packedFlags.IsExtensionMethod; 1686if (!_packedFlags.IsUnscopedRefPopulated) 1690_packedFlags.InitializeIsUnscopedRef(unscopedRef); 1693return _packedFlags.IsUnscopedRef; 1707if (!_packedFlags.IsOverloadResolutionPriorityPopulated) 1722_packedFlags.SetIsOverloadResolutionPriorityPopulated();