5 implementations of ICustomAttribute
Microsoft.CodeAnalysis (3)
CodeGen\PermissionSetAttribute.cs (1)
31internal class PermissionSetAttributeWithFileReference : Cci.ICustomAttribute
Emit\EditAndContinue\DeletedCustomAttribute.cs (2)
11internal sealed class DeletedCustomAttribute : DeletedDefinition<ICustomAttribute>, ICustomAttribute
Microsoft.CodeAnalysis.CSharp (1)
Emitter\Model\AttributeDataAdapter.cs (1)
17internal abstract partial class CSharpAttributeData : Cci.ICustomAttribute
Microsoft.CodeAnalysis.VisualBasic (1)
Emit\AttributeDataAdapter.vb (1)
14Implements Cci.ICustomAttribute
132 references to ICustomAttribute
Microsoft.CodeAnalysis (83)
CodeGen\ArrayMembers.cs (2)
353public IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 354=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
CodeGen\PermissionSetAttribute.cs (2)
33private readonly Cci.ICustomAttribute _sourceAttribute; 38public PermissionSetAttributeWithFileReference(Cci.ICustomAttribute sourceAttribute, string resolvedPermissionSetFilePath)
CodeGen\PrivateImplementationDetails.cs (8)
50private readonly Cci.ICustomAttribute _compilerGeneratedAttribute; 90Cci.ICustomAttribute compilerGeneratedAttribute) 324public override IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 331return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 518public IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 519=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 677public virtual IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 678=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\CommonPEModuleBuilder.cs (5)
116public abstract IEnumerable<Cci.ICustomAttribute> GetSourceAssemblyAttributes(bool isRefAssembly); 118public abstract IEnumerable<Cci.ICustomAttribute> GetSourceModuleAttributes(); 119internal abstract Cci.ICustomAttribute SynthesizeAttribute(WellKnownMember attributeConstructor); 264IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\EditAndContinue\DeletedCustomAttribute.cs (1)
13public DeletedCustomAttribute(ICustomAttribute oldAttribute, Dictionary<ITypeDefinition, DeletedTypeDefinition> typesUsedByDeletedMembers)
Emit\EditAndContinue\DeletedDefinition.cs (1)
44protected IEnumerable<DeletedCustomAttribute> WrapAttributes(IEnumerable<ICustomAttribute> attributes)
Emit\EditAndContinue\DeletedEventDefinition.cs (1)
66public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context)
Emit\EditAndContinue\DeletedGenericParameter.cs (1)
87public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context)
Emit\EditAndContinue\DeletedMethodDefinition.cs (2)
115public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) 151public IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context)
Emit\EditAndContinue\DeletedParameterDefinition.cs (1)
54public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context)
Emit\EditAndContinue\DeletedPropertyDefinition.cs (1)
80public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context)
Emit\EditAndContinue\DeletedTypeDefinition.cs (1)
109public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
878protected override int AddCustomAttributesToTable(EntityHandle parentHandle, IEnumerable<ICustomAttribute> attributes)
Emit\ErrorType.cs (4)
168IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 170return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 232IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 234return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\NoPia\CommonEmbeddedMember.cs (1)
88IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context)
Emit\NoPia\CommonEmbeddedMethod.cs (2)
217IEnumerable<Cci.ICustomAttribute> Cci.IMethodDefinition.GetReturnValueAttributes(EmitContext context) 220return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\NoPia\CommonEmbeddedParameter.cs (1)
192IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context)
Emit\NoPia\CommonEmbeddedType.cs (1)
531IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context)
Emit\NoPia\CommonEmbeddedTypeParameter.cs (2)
191IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 194return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\NoPia\EmbeddedTypesManager.cs (1)
51where TAttributeData : AttributeData, Cci.ICustomAttribute
Emit\NoPia\VtblGap.cs (4)
119IEnumerable<Cci.ICustomAttribute> Cci.IMethodDefinition.GetReturnValueAttributes(EmitContext context) 121return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 168IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 170return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
PEWriter\Core.cs (1)
26IEnumerable<ICustomAttribute> GetAttributes(EmitContext context); // TODO: consider moving this to IDefinition, we shouldn't need to examine attributes on references.
PEWriter\InheritedTypeParameter.cs (1)
195public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context)
PEWriter\ManagedResource.cs (2)
89public IEnumerable<ICustomAttribute> Attributes 91get { return SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); }
PEWriter\Members.cs (1)
627IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context);
PEWriter\MetadataVisitor.cs (3)
43public void Visit(IEnumerable<ICustomAttribute> customAttributes) 45foreach (ICustomAttribute customAttribute in customAttributes) 51public virtual void Visit(ICustomAttribute customAttribute)
PEWriter\MetadataWriter.cs (16)
434private readonly Dictionary<ICustomAttribute, BlobHandle> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute, BlobHandle>(); 702private BlobHandle GetCustomAttributeSignatureIndex(ICustomAttribute customAttribute) 1232private BlobHandle GetPermissionSetBlobHandle(ImmutableArray<ICustomAttribute> permissionSet) 2040private void AddAssemblyAttributesToTable(IEnumerable<ICustomAttribute> assemblyAttributes, bool needsDummyParent, bool isSecurity) 2044foreach (ICustomAttribute customAttribute in assemblyAttributes) 2105protected virtual int AddCustomAttributesToTable(EntityHandle parentHandle, IEnumerable<ICustomAttribute> attributes) 2108foreach (var attr in attributes) 2116private void AddCustomAttributeToTable(EntityHandle parentHandle, ICustomAttribute customAttribute) 2159OrderPreservingMultiDictionary<DeclarativeSecurityAction, ICustomAttribute> groupedSecurityAttributes = null; 2163groupedSecurityAttributes = groupedSecurityAttributes ?? OrderPreservingMultiDictionary<DeclarativeSecurityAction, ICustomAttribute>.GetInstance(); 3398private EmitContext GetEmitContextForAttribute(ICustomAttribute customAttribute) 3413private void SerializeCustomAttributeSignature(ICustomAttribute customAttribute, BlobBuilder builder) 3433private void SerializeCustomAttributeNamedArguments(in EmitContext context, NamedArgumentsEncoder encoder, ICustomAttribute customAttribute) 3692private void SerializePermissionSet(ImmutableArray<ICustomAttribute> permissionSet, BlobBuilder writer) 3695foreach (ICustomAttribute customAttribute in permissionSet)
PEWriter\Miscellaneous.cs (2)
96public ICustomAttribute Attribute { get; } 98public SecurityAttribute(DeclarativeSecurityAction action, ICustomAttribute attribute)
PEWriter\ModifiedTypeReference.cs (2)
70IEnumerable<ICustomAttribute> IReference.GetAttributes(EmitContext context) 72return SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
PEWriter\ReturnValueParameter.cs (1)
19public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context)
PEWriter\RootModuleStaticConstructor.cs (4)
110public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); 120public IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
PEWriter\RootModuleType.cs (2)
51public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) 53return SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
PEWriter\Types.cs (3)
430public ImmutableArray<ICustomAttribute> Attributes { get; } 434ImmutableArray<ICustomAttribute> attributes = default(ImmutableArray<ICustomAttribute>))
Symbols\Attributes\SecurityWellKnownAttributeData.cs (2)
62where T : Cci.ICustomAttribute 77Cci.ICustomAttribute attribute = customAttributes[i];
Microsoft.CodeAnalysis.CSharp (25)
Emitter\Model\AssemblyReference.cs (2)
48IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(CodeAnalysis.Emit.EmitContext context) 50return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emitter\Model\AttributeDataAdapter.cs (7)
19ImmutableArray<Cci.IMetadataExpression> Cci.ICustomAttribute.GetArguments(EmitContext context) 36Cci.IMethodReference Cci.ICustomAttribute.Constructor(EmitContext context, bool reportDiagnostics) 56ImmutableArray<Cci.IMetadataNamedArgument> Cci.ICustomAttribute.GetNamedArguments(EmitContext context) 72int Cci.ICustomAttribute.ArgumentCount 80ushort Cci.ICustomAttribute.NamedArgumentCount 88Cci.ITypeReference Cci.ICustomAttribute.GetType(EmitContext context) 94bool Cci.ICustomAttribute.AllowMultiple
Emitter\Model\ExpandedVarargsMethodReference.cs (1)
130IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context)
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (2)
54IEnumerable<ICustomAttribute> IReference.GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
Emitter\Model\MethodSymbolAdapter.cs (1)
505IEnumerable<Cci.ICustomAttribute> Cci.IMethodDefinition.GetReturnValueAttributes(EmitContext context)
Emitter\Model\ModuleReference.cs (2)
81IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 83return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emitter\Model\NamedTypeReference.cs (2)
154IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 156return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emitter\Model\PEModuleBuilder.cs (3)
113internal sealed override Cci.ICustomAttribute SynthesizeAttribute(WellKnownMember attributeConstructor) 118public sealed override IEnumerable<Cci.ICustomAttribute> GetSourceAssemblyAttributes(bool isRefAssembly) 129public sealed override IEnumerable<Cci.ICustomAttribute> GetSourceModuleAttributes()
Emitter\Model\SymbolAdapter.cs (1)
41IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context)
Emitter\Model\TypeMemberReference.cs (2)
39IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 41return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Symbols\TypeSymbolExtensions.cs (2)
1998var builder = ArrayBuilder<Cci.ICustomAttribute>.GetInstance(); 2016static void addIfNotNull(ArrayBuilder<Cci.ICustomAttribute> builder, SynthesizedAttributeData? attr)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
AssemblyReference.cs (2)
41IEnumerable<ICustomAttribute> IReference.GetAttributes(EmitContext context) 43return SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (1)
NamespaceTypeDefinitionNoBase.cs (1)
106IEnumerable<ICustomAttribute> IReference.GetAttributes(EmitContext context) => UnderlyingType.GetAttributes(context);
Microsoft.CodeAnalysis.VisualBasic (21)
Emit\AssemblyReference.vb (2)
52Private Function IReferenceAttributes(context As EmitContext) As IEnumerable(Of Cci.ICustomAttribute) Implements Cci.IReference.GetAttributes 53Return SpecializedCollections.EmptyEnumerable(Of Cci.ICustomAttribute)()
Emit\AttributeDataAdapter.vb (7)
16Private Function GetArguments1(context As EmitContext) As ImmutableArray(Of Cci.IMetadataExpression) Implements Cci.ICustomAttribute.GetArguments 20Private Function Constructor1(context As EmitContext, reportDiagnostics As Boolean) As Cci.IMethodReference Implements Cci.ICustomAttribute.Constructor 38Private Function GetNamedArguments1(context As EmitContext) As ImmutableArray(Of Cci.IMetadataNamedArgument) Implements Cci.ICustomAttribute.GetNamedArguments 42Private ReadOnly Property ArgumentCount As Integer Implements Cci.ICustomAttribute.ArgumentCount 48Private ReadOnly Property NamedArgumentCount As UShort Implements Cci.ICustomAttribute.NamedArgumentCount 54Private Function GetType1(context As EmitContext) As Cci.ITypeReference Implements Cci.ICustomAttribute.GetType 59Private ReadOnly Property AllowMultiple1 As Boolean Implements Cci.ICustomAttribute.AllowMultiple
Emit\MethodSymbolAdapter.vb (1)
401Private Function IMethodDefinitionGetReturnValueAttributes(context As EmitContext) As IEnumerable(Of Cci.ICustomAttribute) Implements Cci.IMethodDefinition.GetReturnValueAttributes
Emit\ModuleReference.vb (2)
65Private Function IReferenceAttributes(context As EmitContext) As IEnumerable(Of Cci.ICustomAttribute) Implements Cci.IReference.GetAttributes 66Return SpecializedCollections.EmptyEnumerable(Of Cci.ICustomAttribute)()
Emit\NamedTypeReference.vb (2)
110Private Function IReferenceAttributes(context As EmitContext) As IEnumerable(Of Cci.ICustomAttribute) Implements Cci.IReference.GetAttributes 111Return SpecializedCollections.EmptyEnumerable(Of Cci.ICustomAttribute)()
Emit\PEModuleBuilder.vb (3)
179Friend NotOverridable Overrides Function SynthesizeAttribute(attributeConstructor As WellKnownMember) As Cci.ICustomAttribute 183Public NotOverridable Overrides Function GetSourceAssemblyAttributes(isRefAssembly As Boolean) As IEnumerable(Of Cci.ICustomAttribute) 193Public NotOverridable Overrides Function GetSourceModuleAttributes() As IEnumerable(Of Cci.ICustomAttribute)
Emit\SymbolAdapter.vb (1)
36Private Function IReferenceGetAttributes(context As EmitContext) As IEnumerable(Of Cci.ICustomAttribute) Implements Cci.IReference.GetAttributes
Emit\TypeMemberReference.vb (2)
29Private Function IReferenceAttributes(context As EmitContext) As IEnumerable(Of Cci.ICustomAttribute) Implements Cci.IReference.GetAttributes 30Return SpecializedCollections.EmptyEnumerable(Of Cci.ICustomAttribute)()
Symbols\TypeSymbolExtensions.vb (1)
1288ImmutableArray.Create(Of Cci.ICustomAttribute)(attr))