24 references to HasAttribute
Microsoft.CodeAnalysis.CSharp (17)
Symbols\Metadata\PE\PEFieldSymbol.cs (5)
416
if (module.
HasAttribute
(handle, AttributeDescription.AllowNullAttribute)) annotations |= FlowAnalysisAnnotations.AllowNull;
417
if (module.
HasAttribute
(handle, AttributeDescription.DisallowNullAttribute)) annotations |= FlowAnalysisAnnotations.DisallowNull;
418
if (module.
HasAttribute
(handle, AttributeDescription.MaybeNullAttribute)) annotations |= FlowAnalysisAnnotations.MaybeNull;
419
if (module.
HasAttribute
(handle, AttributeDescription.NotNullAttribute)) annotations |= FlowAnalysisAnnotations.NotNull;
685
hasRequiredMemberAttribute = ContainingPEModule.Module.
HasAttribute
(_handle, AttributeDescription.RequiredMemberAttribute);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1514
var result = _containingType.ContainingPEModule.Module.
HasAttribute
(_handle, AttributeDescription.SetsRequiredMembersAttribute);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
880
var hasRequiredMemberAttribute = ContainingPEModule.Module.
HasAttribute
(_handle, AttributeDescription.RequiredMemberAttribute);
Symbols\Metadata\PE\PEParameterSymbol.cs (9)
594
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
610
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
626
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
642
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
658
value = _packedFlags.SetWellKnownAttribute(flag, _moduleSymbol.Module.
HasAttribute
(_handle,
778
if (module.
HasAttribute
(handle, AttributeDescription.AllowNullAttribute)) annotations |= FlowAnalysisAnnotations.AllowNull;
779
if (module.
HasAttribute
(handle, AttributeDescription.DisallowNullAttribute)) annotations |= FlowAnalysisAnnotations.DisallowNull;
781
if (module.
HasAttribute
(handle, AttributeDescription.MaybeNullAttribute))
790
if (module.
HasAttribute
(handle, AttributeDescription.NotNullAttribute))
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
523
hasRequiredMemberAttribute = containingPEModuleSymbol.Module.
HasAttribute
(_handle, AttributeDescription.RequiredMemberAttribute);
Microsoft.CodeAnalysis.VisualBasic (7)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1024
ContainingPEModule.Module.
HasAttribute
(Me._handle, AttributeDescription.StandardModuleAttribute) Then
Symbols\Metadata\PE\PEParameterSymbol.vb (6)
192
hasOptionCompare = moduleSymbol.Module.
HasAttribute
(handle, AttributeDescription.OptionCompareAttribute)
562
HasAttribute
(_handle, AttributeDescription.IDispatchConstantAttribute).ToThreeState()
575
HasAttribute
(_handle, AttributeDescription.IUnknownConstantAttribute).ToThreeState()
588
HasAttribute
(_handle, AttributeDescription.CallerLineNumberAttribute).ToThreeState()
601
HasAttribute
(_handle, AttributeDescription.CallerMemberNameAttribute).ToThreeState()
614
HasAttribute
(_handle, AttributeDescription.CallerFilePathAttribute).ToThreeState()