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)
1619
var result = _containingType.ContainingPEModule.Module.
HasAttribute
(_handle, AttributeDescription.SetsRequiredMembersAttribute);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1099
var hasRequiredMemberAttribute = ContainingPEModule.Module.
HasAttribute
(_handle, AttributeDescription.RequiredMemberAttribute);
Symbols\Metadata\PE\PEParameterSymbol.cs (9)
611
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
627
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
643
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
659
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
675
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
795
if (module.
HasAttribute
(handle, AttributeDescription.AllowNullAttribute)) annotations |= FlowAnalysisAnnotations.AllowNull;
796
if (module.
HasAttribute
(handle, AttributeDescription.DisallowNullAttribute)) annotations |= FlowAnalysisAnnotations.DisallowNull;
798
if (module.
HasAttribute
(handle, AttributeDescription.MaybeNullAttribute))
807
if (module.
HasAttribute
(handle, AttributeDescription.NotNullAttribute))
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
617
hasRequiredMemberAttribute = containingPEModuleSymbol.Module.
HasAttribute
(_handle, AttributeDescription.RequiredMemberAttribute);