2 instantiations of SecurityAttribute
Microsoft.CodeAnalysis (1)
Symbols\Attributes\SecurityWellKnownAttributeData.cs (1)
84yield return new Cci.SecurityAttribute(action, attribute);
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceAssemblySymbol.cs (1)
1846yield return new Cci.SecurityAttribute((DeclarativeSecurityAction)(int)constantValue, attribute);
79 references to SecurityAttribute
Microsoft.CodeAnalysis (23)
CodeGen\PrivateImplementationDetails.cs (2)
1077public IEnumerable<Cci.SecurityAttribute> SecurityAttributes 1078=> SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emit\CommonPEModuleBuilder.cs (1)
166public abstract IEnumerable<Cci.SecurityAttribute> GetSourceAssemblySecurityAttributes();
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (1)
125public IEnumerable<Cci.SecurityAttribute> SecurityAttributes
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (1)
73public IEnumerable<SecurityAttribute> SecurityAttributes => OldDefinition.SecurityAttributes;
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
60public IEnumerable<SecurityAttribute> SecurityAttributes
Emit\NoPia\CommonEmbeddedMethod.cs (2)
236IEnumerable<Cci.SecurityAttribute> Cci.IMethodDefinition.SecurityAttributes => 237SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emit\NoPia\CommonEmbeddedType.cs (2)
516IEnumerable<Cci.SecurityAttribute> Cci.ITypeDefinition.SecurityAttributes 521return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emit\NoPia\VtblGap.cs (2)
144IEnumerable<Cci.SecurityAttribute> Cci.IMethodDefinition.SecurityAttributes 146get { return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); }
PEWriter\Members.cs (1)
665IEnumerable<SecurityAttribute> SecurityAttributes { get; }
PEWriter\MetadataVisitor.cs (3)
526public virtual void Visit(SecurityAttribute securityAttribute) 531public void Visit(IEnumerable<SecurityAttribute> securityAttributes) 533foreach (SecurityAttribute securityAttribute in securityAttributes)
PEWriter\MetadataWriter.cs (2)
2183private void PopulateDeclSecurityTableRowsFor(EntityHandle parentHandle, IEnumerable<SecurityAttribute> attributes) 2187foreach (SecurityAttribute securityAttribute in attributes)
PEWriter\MethodDefinitionBase.cs (1)
79public IEnumerable<SecurityAttribute> SecurityAttributes => null;
PEWriter\ReferenceIndexerBase.cs (1)
266public override void Visit(SecurityAttribute securityAttribute)
PEWriter\RootModuleType.cs (1)
213IEnumerable<SecurityAttribute> ITypeDefinition.SecurityAttributes
PEWriter\Types.cs (1)
595IEnumerable<SecurityAttribute> SecurityAttributes { get; }
Symbols\Attributes\SecurityWellKnownAttributeData.cs (1)
61public IEnumerable<Cci.SecurityAttribute> GetSecurityAttributes<T>(ImmutableArray<T> customAttributes)
Microsoft.CodeAnalysis.CSharp (53)
Emitter\Model\MethodSymbolAdapter.cs (1)
375IEnumerable<Cci.SecurityAttribute> Cci.IMethodDefinition.SecurityAttributes
Emitter\Model\NamedTypeSymbolAdapter.cs (2)
725IEnumerable<Cci.SecurityAttribute> Cci.ITypeDefinition.SecurityAttributes 730return AdaptedNamedTypeSymbol.GetSecurityInformation() ?? SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emitter\Model\PEModuleBuilder.cs (1)
126public sealed override IEnumerable<Cci.SecurityAttribute> GetSourceAssemblySecurityAttributes()
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
105internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Lowering\SynthesizedMethodBaseSymbol.cs (2)
182internal sealed override IEnumerable<SecurityAttribute> GetSecurityInformation() => InheritsBaseMethodAttributes 184: SpecializedCollections.EmptyEnumerable<SecurityAttribute>();
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
252internal sealed override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
205internal sealed override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
311internal sealed override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\ErrorMethodSymbol.cs (1)
264internal sealed override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\ErrorTypeSymbol.cs (1)
529internal sealed override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
859internal override IEnumerable<SecurityAttribute> GetSecurityInformation() => throw ExceptionUtilities.Unreachable();
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
485internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2748internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\MethodSymbol.cs (1)
156internal abstract IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation();
Symbols\NamedTypeSymbol.cs (1)
1593internal abstract IEnumerable<Cci.SecurityAttribute> GetSecurityInformation();
Symbols\ReducedExtensionMethodSymbol.cs (1)
346internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\SignatureOnlyMethodSymbol.cs (1)
121internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation() { throw ExceptionUtilities.Unreachable(); }
Symbols\Source\ExtensionGroupingInfo.cs (2)
526IEnumerable<SecurityAttribute> ITypeDefinition.SecurityAttributes => SpecializedCollections.EmptyEnumerable<SecurityAttribute>();
Symbols\Source\ImplicitNamedTypeSymbol.cs (1)
157internal sealed override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Source\SourceAssemblySymbol.cs (5)
1780private static IEnumerable<Cci.SecurityAttribute> GetSecurityAttributes(CustomAttributesBag<CSharpAttributeData> attributesBag) 1790foreach (var securityAttribute in securityData.GetSecurityAttributes<CSharpAttributeData>(attributesBag.Attributes)) 1798internal IEnumerable<Cci.SecurityAttribute> GetSecurityAttributes() 1802foreach (var securityAttribute in GetSecurityAttributes(this.GetSourceAttributesBag())) 1809foreach (var securityAttribute in GetSecurityAttributes(this.GetNetModuleAttributesBag()))
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1705internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() 1718return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1567internal sealed override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (2)
241internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
923internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Symbols\Synthesized\SynthesizedContainer.cs (1)
199internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
128internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
178internal override IEnumerable<SecurityAttribute> GetSecurityInformation() => null;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
272internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
136internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
137internal override IEnumerable<SecurityAttribute>? GetSecurityInformation() => null;
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
259internal sealed override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
172internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
117internal sealed override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
218internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (2)
164internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() 166return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (2)
170internal override IEnumerable<SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<SecurityAttribute>();
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
351internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
358internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
233internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
242internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Security.cs (2)
47IEnumerable<Cci.SecurityAttribute> typeSecurityAttributes = type.SecurityAttributes; 58var securityAttribute = typeSecurityAttributes.First();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\MockNamedTypeSymbol.cs (1)
322internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()