1 implementation of ICustomAttribute
Microsoft.CodeAnalysis (1)
CodeGen\PermissionSetAttribute.cs (1)
31internal class PermissionSetAttributeWithFileReference : Cci.ICustomAttribute
78 references to ICustomAttribute
Microsoft.CodeAnalysis (78)
CodeGen\ArrayMembers.cs (2)
351public IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 352=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
CodeGen\PermissionSetAttribute.cs (2)
33private readonly Cci.ICustomAttribute _sourceAttribute; 38public PermissionSetAttributeWithFileReference(Cci.ICustomAttribute sourceAttribute, string resolvedPermissionSetFilePath)
CodeGen\PrivateImplementationDetails.cs (6)
57private readonly Cci.ICustomAttribute _compilerGeneratedAttribute; 107Cci.ICustomAttribute compilerGeneratedAttribute) 421public override IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 428return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 669public IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 670=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\CommonPEModuleBuilder.cs (5)
132public abstract IEnumerable<Cci.ICustomAttribute> GetSourceAssemblyAttributes(bool isRefAssembly); 134public abstract IEnumerable<Cci.ICustomAttribute> GetSourceModuleAttributes(); 135internal abstract Cci.ICustomAttribute SynthesizeAttribute(WellKnownMember attributeConstructor); 303IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (2)
98public IEnumerable<Cci.ICustomAttribute> GetAttributes(EmitContext context) 173public IEnumerable<Cci.ICustomAttribute> GetReturnValueAttributes(EmitContext context)
Emit\EditAndContinue\DeletedSourceDefinition.cs (1)
39public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context)
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (1)
132public IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context)
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
57private readonly List<(EntityHandle parentHandle, IEnumerator<ICustomAttribute> attributeEnumerator)> _deferredCustomAttributes = new(); 923protected override void AddCustomAttributesToTable(EntityHandle parentHandle, IEnumerable<ICustomAttribute> attributes) 1043void addWithCap(EntityHandle parentHandle, IEnumerator<ICustomAttribute> attributeEnumerator, int limit)
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)
91IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context)
Emit\NoPia\CommonEmbeddedMethod.cs (2)
223IEnumerable<Cci.ICustomAttribute> Cci.IMethodDefinition.GetReturnValueAttributes(EmitContext context) 226return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\NoPia\CommonEmbeddedParameter.cs (1)
193IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context)
Emit\NoPia\CommonEmbeddedType.cs (1)
532IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context)
Emit\NoPia\CommonEmbeddedTypeParameter.cs (2)
203IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 206return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\NoPia\EmbeddedTypesManager.cs (1)
51where TAttributeData : class, Cci.ICustomAttribute
Emit\NoPia\VtblGap.cs (4)
123IEnumerable<Cci.ICustomAttribute> Cci.IMethodDefinition.GetReturnValueAttributes(EmitContext context) 125return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 172IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) 174return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
PEWriter\Core.cs (1)
37IEnumerable<ICustomAttribute> GetAttributes(EmitContext context); // TODO: consider moving this to IDefinition, we shouldn't need to examine attributes on references.
PEWriter\InheritedTypeParameter.cs (1)
203public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context)
PEWriter\ManagedResource.cs (2)
89public IEnumerable<ICustomAttribute> Attributes 91get { return SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); }
PEWriter\Members.cs (1)
637IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context);
PEWriter\MetadataVisitor.cs (3)
44public void Visit(IEnumerable<ICustomAttribute> customAttributes) 46foreach (ICustomAttribute customAttribute in customAttributes) 52public virtual void Visit(ICustomAttribute customAttribute)
PEWriter\MetadataWriter.cs (16)
439private readonly Dictionary<ICustomAttribute, BlobHandle> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute, BlobHandle>(); 708private BlobHandle GetCustomAttributeSignatureIndex(ICustomAttribute customAttribute) 1232private BlobHandle GetPermissionSetBlobHandle(ImmutableArray<ICustomAttribute> permissionSet) 2049private void AddAssemblyAttributesToTable(IEnumerable<ICustomAttribute> assemblyAttributes, bool needsDummyParent, bool isSecurity) 2053foreach (ICustomAttribute customAttribute in assemblyAttributes) 2126protected virtual void AddCustomAttributesToTable(EntityHandle parentHandle, IEnumerable<ICustomAttribute> attributes) 2128foreach (var attr in attributes) 2134protected bool AddCustomAttributeToTable(EntityHandle parentHandle, ICustomAttribute customAttribute) 2180OrderPreservingMultiDictionary<DeclarativeSecurityAction, ICustomAttribute> groupedSecurityAttributes = null; 2184groupedSecurityAttributes = groupedSecurityAttributes ?? OrderPreservingMultiDictionary<DeclarativeSecurityAction, ICustomAttribute>.GetInstance(); 3448private EmitContext GetEmitContextForAttribute(ICustomAttribute customAttribute) 3463private void SerializeCustomAttributeSignature(ICustomAttribute customAttribute, BlobBuilder builder) 3483private void SerializeCustomAttributeNamedArguments(in EmitContext context, NamedArgumentsEncoder encoder, ICustomAttribute customAttribute) 3742private void SerializePermissionSet(ImmutableArray<ICustomAttribute> permissionSet, BlobBuilder writer) 3745foreach (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)
21public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context)
PEWriter\RootModuleStaticConstructor.cs (4)
112public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); 122public 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)
435public ImmutableArray<ICustomAttribute> Attributes { get; } 439ImmutableArray<ICustomAttribute> attributes = default(ImmutableArray<ICustomAttribute>))
Symbols\Attributes\SecurityWellKnownAttributeData.cs (2)
62where T : Cci.ICustomAttribute 77Cci.ICustomAttribute attribute = customAttributes[i];