17 references to HasAttribute
Microsoft.CodeAnalysis.CSharp (17)
Symbols\Metadata\PE\PEFieldSymbol.cs (5)
419
if (module.
HasAttribute
(handle, AttributeDescription.AllowNullAttribute)) annotations |= FlowAnalysisAnnotations.AllowNull;
420
if (module.
HasAttribute
(handle, AttributeDescription.DisallowNullAttribute)) annotations |= FlowAnalysisAnnotations.DisallowNull;
421
if (module.
HasAttribute
(handle, AttributeDescription.MaybeNullAttribute)) annotations |= FlowAnalysisAnnotations.MaybeNull;
422
if (module.
HasAttribute
(handle, AttributeDescription.NotNullAttribute)) annotations |= FlowAnalysisAnnotations.NotNull;
709
hasRequiredMemberAttribute = ContainingPEModule.Module.
HasAttribute
(_handle, AttributeDescription.RequiredMemberAttribute);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1618
var result = _containingType.ContainingPEModule.Module.
HasAttribute
(_handle, AttributeDescription.SetsRequiredMembersAttribute);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1154
var hasRequiredMemberAttribute = ContainingPEModule.Module.
HasAttribute
(_handle, AttributeDescription.RequiredMemberAttribute);
Symbols\Metadata\PE\PEParameterSymbol.cs (9)
632
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
648
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
664
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
680
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
696
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
810
if (module.
HasAttribute
(handle, AttributeDescription.AllowNullAttribute)) annotations |= FlowAnalysisAnnotations.AllowNull;
811
if (module.
HasAttribute
(handle, AttributeDescription.DisallowNullAttribute)) annotations |= FlowAnalysisAnnotations.DisallowNull;
813
if (module.
HasAttribute
(handle, AttributeDescription.MaybeNullAttribute))
822
if (module.
HasAttribute
(handle, AttributeDescription.NotNullAttribute))
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
618
hasRequiredMemberAttribute = containingPEModuleSymbol.Module.
HasAttribute
(_handle, AttributeDescription.RequiredMemberAttribute);