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.
328
if (!
_packedFlags
.IsObsoleteAttributePopulated)
333
if (!
_packedFlags
.IsUnmanagedCallersOnlyAttributePopulated)
349
if (
_packedFlags
.IsCustomAttributesPopulated)
354
if (
_packedFlags
.IsConditionalPopulated)
359
if (
_packedFlags
.IsOverriddenOrHiddenMembersPopulated)
364
if (
_packedFlags
.IsMemberNotNullPopulated)
371
if (
_packedFlags
.IsExplicitOverrideIsPopulated)
395
/// the computed value is a well-known "empty" value. In this case, bits in <see cref="
_packedFlags
"/> are used
608
if (!
_packedFlags
.IsExplicitOverrideIsPopulated)
611
Debug.Assert(
_packedFlags
.IsExplicitOverrideIsPopulated);
613
return
_packedFlags
.IsExplicitFinalizerOverride;
621
if (!
_packedFlags
.IsExplicitOverrideIsPopulated)
624
Debug.Assert(
_packedFlags
.IsExplicitOverrideIsPopulated);
626
return
_packedFlags
.IsExplicitClassOverride;
674
if (!
_packedFlags
.IsDoesNotReturnPopulated)
678
_packedFlags
.InitializeDoesNotReturn(doesNotReturn);
681
return
_packedFlags
.DoesNotReturn ? FlowAnalysisAnnotations.DoesNotReturn : FlowAnalysisAnnotations.None;
689
if (!
_packedFlags
.IsMemberNotNullPopulated)
731
_packedFlags
.SetIsMemberNotNullPopulated();
738
if (!
_packedFlags
.IsMemberNotNullPopulated)
760
if (!
_packedFlags
.IsMemberNotNullPopulated)
813
_packedFlags
.MethodKind == default(MethodKind) ||
814
_packedFlags
.MethodKind == MethodKind.Ordinary ||
815
_packedFlags
.MethodKind == MethodKind.ExplicitInterfaceImplementation);
817
_packedFlags
.MethodKind = methodKind;
972
if (!
_packedFlags
.IsExtensionMethodIsPopulated)
981
_packedFlags
.InitializeIsExtensionMethod(isExtensionMethod);
983
return
_packedFlags
.IsExtensionMethod;
993
if (!
_packedFlags
.IsCustomAttributesPopulated)
1000
bool isExtensionAlreadySet =
_packedFlags
.IsExtensionMethodIsPopulated;
1002
?
_packedFlags
.IsExtensionMethod
1007
bool isReadOnlyAlreadySet =
_packedFlags
.IsReadOnlyPopulated;
1009
?
_packedFlags
.IsReadOnly
1043
_packedFlags
.InitializeIsExtensionMethod(isExtensionMethod);
1048
_packedFlags
.InitializeIsReadOnly(isReadOnly);
1058
_packedFlags
.SetIsCustomAttributesPopulated();
1084
if (!
_packedFlags
.TryGetNullableContext(out value))
1089
_packedFlags
.SetNullableContext(value);
1103
if (!
_packedFlags
.MethodKindIsPopulated)
1105
_packedFlags
.InitializeMethodKind(this.ComputeMethodKind());
1107
return
_packedFlags
.MethodKind;
1371
_packedFlags
.InitializeIsExplicitOverride(isExplicitFinalizerOverride: sawObjectFinalize, isExplicitClassOverride: anyToRemove);
1392
if (!
_packedFlags
.IsReadOnlyPopulated)
1400
_packedFlags
.InitializeIsReadOnly(isReadOnly);
1402
return
_packedFlags
.IsReadOnly;
1410
if (!
_packedFlags
.IsInitOnlyPopulated)
1415
_packedFlags
.InitializeIsInitOnly(isInitOnly);
1417
return
_packedFlags
.IsInitOnly;
1428
if (!
_packedFlags
.IsUseSiteDiagnosticPopulated)
1509
if (
_packedFlags
.IsUseSiteDiagnosticPopulated)
1519
_packedFlags
.SetIsUseSiteDiagnosticPopulated();
1525
if (!
_packedFlags
.IsConditionalPopulated)
1534
_packedFlags
.SetIsConditionalAttributePopulated();
1557
if (!
_packedFlags
.HasSetsRequiredMembersPopulated)
1560
_packedFlags
.InitializeSetsRequiredMembersBit(result);
1563
return
_packedFlags
.HasSetsRequiredMembers;
1576
if (!
_packedFlags
.IsObsoleteAttributePopulated)
1584
_packedFlags
.SetIsObsoleteAttributePopulated();
1606
if (!
_packedFlags
.IsUnmanagedCallersOnlyAttributePopulated)
1619
_packedFlags
.SetIsUnmanagedCallersOnlyAttributePopulated();
1633
if (!
_packedFlags
.IsOverriddenOrHiddenMembersPopulated)
1642
_packedFlags
.SetIsOverriddenOrHiddenMembersPopulated();
1675
internal bool TestIsExtensionBitSet =>
_packedFlags
.IsExtensionMethodIsPopulated;
1678
internal bool TestIsExtensionBitTrue =>
_packedFlags
.IsExtensionMethod;
1686
if (!
_packedFlags
.IsUnscopedRefPopulated)
1690
_packedFlags
.InitializeIsUnscopedRef(unscopedRef);
1693
return
_packedFlags
.IsUnscopedRef;
1707
if (!
_packedFlags
.IsOverloadResolutionPriorityPopulated)
1722
_packedFlags
.SetIsOverloadResolutionPriorityPopulated();