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)
1836yield return new Cci.SecurityAttribute((DeclarativeSecurityAction)(int)constantValue, attribute);
123 references to SecurityAttribute
Microsoft.CodeAnalysis (22)
CodeGen\PrivateImplementationDetails.cs (2)
672public IEnumerable<Cci.SecurityAttribute> SecurityAttributes 673=> SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emit\CommonPEModuleBuilder.cs (1)
117public abstract IEnumerable<Cci.SecurityAttribute> GetSourceAssemblySecurityAttributes();
Emit\EditAndContinue\DeletedMethodDefinition.cs (1)
73public IEnumerable<SecurityAttribute> SecurityAttributes => OldDefinition.SecurityAttributes;
Emit\EditAndContinue\DeletedTypeDefinition.cs (1)
58public IEnumerable<SecurityAttribute> SecurityAttributes => _oldTypeReference.SecurityAttributes;
Emit\NoPia\CommonEmbeddedMethod.cs (2)
229IEnumerable<Cci.SecurityAttribute> Cci.IMethodDefinition.SecurityAttributes => 230SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emit\NoPia\CommonEmbeddedType.cs (2)
514IEnumerable<Cci.SecurityAttribute> Cci.ITypeDefinition.SecurityAttributes 519return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emit\NoPia\VtblGap.cs (2)
139IEnumerable<Cci.SecurityAttribute> Cci.IMethodDefinition.SecurityAttributes 141get { return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); }
PEWriter\Members.cs (1)
655IEnumerable<SecurityAttribute> SecurityAttributes { get; }
PEWriter\MetadataVisitor.cs (3)
507public virtual void Visit(SecurityAttribute securityAttribute) 512public void Visit(IEnumerable<SecurityAttribute> securityAttributes) 514foreach (SecurityAttribute securityAttribute in securityAttributes)
PEWriter\MetadataWriter.cs (2)
2157private void PopulateDeclSecurityTableRowsFor(EntityHandle parentHandle, IEnumerable<SecurityAttribute> attributes) 2161foreach (SecurityAttribute securityAttribute in attributes)
PEWriter\ReferenceIndexerBase.cs (1)
252public override void Visit(SecurityAttribute securityAttribute)
PEWriter\RootModuleStaticConstructor.cs (1)
76public IEnumerable<SecurityAttribute> SecurityAttributes => null;
PEWriter\RootModuleType.cs (1)
209IEnumerable<SecurityAttribute> ITypeDefinition.SecurityAttributes
PEWriter\Types.cs (1)
585IEnumerable<SecurityAttribute> SecurityAttributes { get; }
Symbols\Attributes\SecurityWellKnownAttributeData.cs (1)
61public IEnumerable<Cci.SecurityAttribute> GetSecurityAttributes<T>(ImmutableArray<T> customAttributes)
Microsoft.CodeAnalysis.CSharp (42)
Emitter\Model\MethodSymbolAdapter.cs (1)
351IEnumerable<Cci.SecurityAttribute> Cci.IMethodDefinition.SecurityAttributes
Emitter\Model\NamedTypeSymbolAdapter.cs (2)
699IEnumerable<Cci.SecurityAttribute> Cci.ITypeDefinition.SecurityAttributes 704return AdaptedNamedTypeSymbol.GetSecurityInformation() ?? SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emitter\Model\PEModuleBuilder.cs (1)
124public sealed override IEnumerable<Cci.SecurityAttribute> GetSourceAssemblySecurityAttributes()
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
105internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Lowering\SynthesizedMethodBaseSymbol.cs (2)
193internal sealed override IEnumerable<SecurityAttribute> GetSecurityInformation() => InheritsBaseMethodAttributes 195: SpecializedCollections.EmptyEnumerable<SecurityAttribute>();
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
239internal 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)
292internal sealed override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\ErrorMethodSymbol.cs (1)
262internal sealed override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\ErrorTypeSymbol.cs (1)
510internal sealed override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
842internal override IEnumerable<SecurityAttribute> GetSecurityInformation() => throw ExceptionUtilities.Unreachable();
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
457internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2297internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\MethodSymbol.cs (1)
150internal abstract IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation();
Symbols\NamedTypeSymbol.cs (1)
1578internal abstract IEnumerable<Cci.SecurityAttribute> GetSecurityInformation();
Symbols\ReducedExtensionMethodSymbol.cs (1)
338internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\SignatureOnlyMethodSymbol.cs (1)
115internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation() { throw ExceptionUtilities.Unreachable(); }
Symbols\Source\ImplicitNamedTypeSymbol.cs (1)
151internal sealed override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Source\SourceAssemblySymbol.cs (5)
1770private static IEnumerable<Cci.SecurityAttribute> GetSecurityAttributes(CustomAttributesBag<CSharpAttributeData> attributesBag) 1780foreach (var securityAttribute in securityData.GetSecurityAttributes<CSharpAttributeData>(attributesBag.Attributes)) 1788internal IEnumerable<Cci.SecurityAttribute> GetSecurityAttributes() 1792foreach (var securityAttribute in GetSecurityAttributes(this.GetSourceAttributesBag())) 1799foreach (var securityAttribute in GetSecurityAttributes(this.GetNetModuleAttributesBag()))
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1260internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() 1273return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1441internal sealed override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedContainer.cs (1)
190internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
128internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
160internal override IEnumerable<SecurityAttribute> GetSecurityInformation() => null;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
270internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
139internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
259internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
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)
163internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() 165return SpecializedCollections.EmptyEnumerable<Cci.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.Emit2.UnitTests (2)
Attributes\AttributeTests_Security.cs (2)
47IEnumerable<Cci.SecurityAttribute> typeSecurityAttributes = type.SecurityAttributes; 58var securityAttribute = typeSecurityAttributes.First();
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (4)
Symbols\EEMethodSymbol.cs (1)
278internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\EENamedTypeSymbol.cs (1)
269internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\PlaceholderMethodSymbol.cs (1)
250internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation()
Symbols\SynthesizedContextMethodSymbol.cs (1)
199internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\MockNamedTypeSymbol.cs (1)
312internal override IEnumerable<Microsoft.Cci.SecurityAttribute> GetSecurityInformation()
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (1)
NamespaceTypeDefinitionNoBase.cs (1)
88IEnumerable<SecurityAttribute> ITypeDefinition.SecurityAttributes => UnderlyingType.SecurityAttributes;
Microsoft.CodeAnalysis.VisualBasic (42)
Binding\Binder_XmlLiterals.vb (1)
1822Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Emit\MethodSymbolAdapter.vb (2)
436Private ReadOnly Property IMethodDefinitionSecurityAttributes As IEnumerable(Of Cci.SecurityAttribute) Implements Cci.IMethodDefinition.SecurityAttributes 440Dim securityAttributes As IEnumerable(Of Cci.SecurityAttribute) = AdaptedMethodSymbol.GetSecurityInformation()
Emit\NamedTypeSymbolAdapter.vb (2)
715Private ReadOnly Property ITypeDefinitionSecurityAttributes As IEnumerable(Of SecurityAttribute) Implements ITypeDefinition.SecurityAttributes 725Dim securityAttributes As IEnumerable(Of SecurityAttribute) = AdaptedNamedTypeSymbol.GetSecurityInformation()
Emit\PEModuleBuilder.vb (1)
189Public NotOverridable Overrides Function GetSourceAssemblySecurityAttributes() As IEnumerable(Of Cci.SecurityAttribute)
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
192Friend NotOverridable Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
238Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (1)
208Friend Overrides Function GetSecurityInformation() As IEnumerable(Of SecurityAttribute)
Symbols\ErrorMethodSymbol.vb (2)
74Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute) 75Return SpecializedCollections.EmptyEnumerable(Of Microsoft.Cci.SecurityAttribute)()
Symbols\ErrorTypeSymbol.vb (1)
298Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
727Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1465Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\MethodSymbol.vb (1)
387Friend MustOverride Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\NamedTypeSymbol.vb (1)
703Friend MustOverride Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\ReducedExtensionMethodSymbol.vb (1)
573Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
360Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
184Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\SignatureOnlyMethodSymbol.vb (1)
280Friend Overrides Function GetSecurityInformation() As IEnumerable(Of SecurityAttribute)
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
125Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\Source\LambdaSymbol.vb (1)
189Friend NotOverridable Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\Source\SourceAssemblySymbol.vb (5)
586Friend Function GetSecurityAttributes() As IEnumerable(Of Cci.SecurityAttribute) 587Dim sourceSecurityAttributes As IEnumerable(Of Cci.SecurityAttribute) = Nothing 598Dim netmoduleSecurityAttributes As IEnumerable(Of Cci.SecurityAttribute) = Nothing 608Dim securityAttributes As IEnumerable(Of Cci.SecurityAttribute) = Nothing 619securityAttributes = SpecializedCollections.EmptyEnumerable(Of Cci.SecurityAttribute)()
Symbols\Source\SourceMethodSymbol.vb (2)
1924Friend NotOverridable Overrides Function GetSecurityInformation() As IEnumerable(Of SecurityAttribute) 1934Return SpecializedCollections.EmptyEnumerable(Of SecurityAttribute)()
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2145Friend NotOverridable Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute) 2155Return SpecializedCollections.EmptyEnumerable(Of Microsoft.Cci.SecurityAttribute)()
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
850Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute) 1259Friend NotOverridable Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\SubstitutedMethodSymbol.vb (1)
94Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\SubstitutedNamedType.vb (1)
202Friend NotOverridable Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (1)
169Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
321Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (1)
289Friend NotOverridable Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (1)
110Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\UnboundGenericType.vb (1)
193Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\Wrapped\WrappedMethodSymbol.vb (1)
260Friend Overrides Function GetSecurityInformation() As IEnumerable(Of SecurityAttribute)
Symbols\Wrapped\WrappedNamedTypeSymbol.vb (1)
201Friend Overrides Function GetSecurityInformation() As IEnumerable(Of SecurityAttribute)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
Attributes\AttributeTests_WellKnownAttributes.vb (1)
3615Dim typeSecurityAttributes As IEnumerable(Of Microsoft.Cci.SecurityAttribute) = type.SecurityAttributes
Emit\CompilationEmitTests.vb (4)
3277Dim assemblySecurityAttributes As IEnumerable(Of Cci.SecurityAttribute) = assemblyBuilder.GetSourceAssemblySecurityAttributes() 3285Dim securityAttribute As Cci.SecurityAttribute = assemblySecurityAttributes.First() 3311Dim typeSecurityAttributes As IEnumerable(Of Microsoft.Cci.SecurityAttribute) = type.SecurityAttributes 3336Dim methodSecurityAttributes As IEnumerable(Of Microsoft.Cci.SecurityAttribute) = method.SecurityAttributes
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EEMethodSymbol.vb (1)
234Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Microsoft.Cci.SecurityAttribute)
Symbols\EENamedTypeSymbol.vb (1)
243Friend Overrides Function GetSecurityInformation() As IEnumerable(Of SecurityAttribute)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
MockSymbols.vb (2)
211Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Cci.SecurityAttribute) 473Friend Overrides Function GetSecurityInformation() As IEnumerable(Of Cci.SecurityAttribute)