17 references to HasAttribute
Microsoft.CodeAnalysis.CSharp (17)
Symbols\Metadata\PE\PEFieldSymbol.cs (5)
418
if (module.
HasAttribute
(handle, AttributeDescription.AllowNullAttribute)) annotations |= FlowAnalysisAnnotations.AllowNull;
419
if (module.
HasAttribute
(handle, AttributeDescription.DisallowNullAttribute)) annotations |= FlowAnalysisAnnotations.DisallowNull;
420
if (module.
HasAttribute
(handle, AttributeDescription.MaybeNullAttribute)) annotations |= FlowAnalysisAnnotations.MaybeNull;
421
if (module.
HasAttribute
(handle, AttributeDescription.NotNullAttribute)) annotations |= FlowAnalysisAnnotations.NotNull;
687
hasRequiredMemberAttribute = ContainingPEModule.Module.
HasAttribute
(_handle, AttributeDescription.RequiredMemberAttribute);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1622
var result = _containingType.ContainingPEModule.Module.
HasAttribute
(_handle, AttributeDescription.SetsRequiredMembersAttribute);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1134
var hasRequiredMemberAttribute = ContainingPEModule.Module.
HasAttribute
(_handle, AttributeDescription.RequiredMemberAttribute);
Symbols\Metadata\PE\PEParameterSymbol.cs (9)
613
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
629
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
645
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
661
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
677
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
797
if (module.
HasAttribute
(handle, AttributeDescription.AllowNullAttribute)) annotations |= FlowAnalysisAnnotations.AllowNull;
798
if (module.
HasAttribute
(handle, AttributeDescription.DisallowNullAttribute)) annotations |= FlowAnalysisAnnotations.DisallowNull;
800
if (module.
HasAttribute
(handle, AttributeDescription.MaybeNullAttribute))
809
if (module.
HasAttribute
(handle, AttributeDescription.NotNullAttribute))
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
617
hasRequiredMemberAttribute = containingPEModuleSymbol.Module.
HasAttribute
(_handle, AttributeDescription.RequiredMemberAttribute);