4 types derived from VisualBasicAttributeData
Microsoft.CodeAnalysis.VisualBasic (4)
Symbols\Attributes\PEAttributeData.vb (1)
19Inherits VisualBasicAttributeData
Symbols\Attributes\RetargetingAttributeData.vb (1)
17Inherits VisualBasicAttributeData
Symbols\Attributes\SourceAttributeData.vb (1)
20Inherits VisualBasicAttributeData
Symbols\SynthesizedSymbols\SynthesizedAttributeData.vb (1)
17Inherits VisualBasicAttributeData
298 references to VisualBasicAttributeData
Microsoft.CodeAnalysis.VisualBasic (298)
Emit\MethodSymbolAdapter.vb (1)
413Dim userDefined As ImmutableArray(Of VisualBasicAttributeData)
Emit\SourceAssemblySymbolAdapter.vb (1)
13emittingAssemblyAttributesInNetModule As Boolean) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Attributes\AttributeData.vb (3)
188Friend Sub DecodeSecurityAttribute(Of T As {WellKnownAttributeData, ISecurityAttributeTarget, New})(targetSymbol As Symbol, compilation As VisualBasicCompilation, ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) 375Friend Function DecodePermissionSetAttribute(compilation As VisualBasicCompilation, ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) As String 624Public Function IndexOfAttribute(attributes As ImmutableArray(Of VisualBasicAttributeData), description As AttributeDescription) As Integer
Symbols\Attributes\RetargetingAttributeData.vb (2)
19Private ReadOnly _underlying As VisualBasicAttributeData 25Friend Sub New(ByVal underlying As VisualBasicAttributeData,
Symbols\EventSymbol.vb (3)
86''' <returns>Returns an array of <see cref="VisualBasicAttributeData"/> or an empty array if there are no attributes.</returns> 87Public Function GetFieldAttributes() As ImmutableArray(Of VisualBasicAttributeData) 89Return If(field Is Nothing, ImmutableArray(Of VisualBasicAttributeData).Empty, field.GetAttributes())
Symbols\Metadata\PE\PEAssemblySymbol.vb (2)
67Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 131Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Metadata\PE\PEEventSymbol.vb (3)
37Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 260Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 268Friend Overrides Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Metadata\PE\PEFieldSymbol.vb (3)
44Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 140Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 180Friend Overrides Iterator Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Metadata\PE\PEMethodSymbol.vb (8)
208Public _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 232retVal._lazyCustomAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 627Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 629Dim attributeData As ImmutableArray(Of VisualBasicAttributeData) = Nothing 643Return ImmutableArray(Of VisualBasicAttributeData).Empty 647InterlockedOperations.Initialize(uncommonFields._lazyCustomAttributes, ImmutableArray(Of VisualBasicAttributeData).Empty), 652Friend Overrides Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData) 960Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Metadata\PE\PEModuleSymbol.vb (17)
75Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 77Private _lazyAssemblyAttributes As ImmutableArray(Of VisualBasicAttributeData) 141Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 149Friend Function GetAssemblyAttributes() As ImmutableArray(Of VisualBasicAttributeData) 151Dim moduleAssemblyAttributesBuilder As ArrayBuilder(Of VisualBasicAttributeData) = Nothing 167moduleAssemblyAttributesBuilder = ArrayBuilder(Of VisualBasicAttributeData).GetInstance() 181ImmutableArray(Of VisualBasicAttributeData).Empty), 187Friend Function GetCustomAttributesForToken(token As EntityHandle) As ImmutableArray(Of VisualBasicAttributeData) 195Optional filterOut2 As AttributeDescription = Nothing) As ImmutableArray(Of VisualBasicAttributeData) 196Dim builder As ArrayBuilder(Of VisualBasicAttributeData) = Nothing 204builder = ArrayBuilder(Of VisualBasicAttributeData).GetInstance() 236Return ImmutableArray(Of VisualBasicAttributeData).Empty 239Friend Sub LoadCustomAttributes(token As EntityHandle, ByRef lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData)) 240Dim attributes As ImmutableArray(Of VisualBasicAttributeData) = GetCustomAttributesForToken(token) 242ImmutableInterlocked.InterlockedCompareExchange(Of VisualBasicAttributeData)( 393Dim assemblyAttributes As ImmutableArray(Of VisualBasicAttributeData) = GetAssemblyAttributes() 404Dim assemblyAttributes As ImmutableArray(Of VisualBasicAttributeData) = GetAssemblyAttributes()
Symbols\Metadata\PE\PENamedTypeSymbol.vb (3)
62Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 412Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 433Friend Overrides Iterator Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Metadata\PE\PEParameterSymbol.vb (9)
42Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 65Private _lazyHiddenAttributes As ImmutableArray(Of VisualBasicAttributeData) 175_lazyCustomAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 176_lazyHiddenAttributes = ImmutableArray(Of VisualBasicAttributeData).Empty 358Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 390Dim builder = ArrayBuilder(Of VisualBasicAttributeData).GetInstance() 402ImmutableInterlocked.InterlockedInitialize(_lazyHiddenAttributes, ImmutableArray(Of VisualBasicAttributeData).Empty) 412ImmutableInterlocked.InterlockedInitialize(_lazyHiddenAttributes, ImmutableArray(Of VisualBasicAttributeData).Empty) 421Friend Overrides Iterator Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Metadata\PE\PEPropertySymbol.vb (3)
33Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 334Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 342Friend Overrides Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Metadata\PE\PETypeParameterSymbol.vb (2)
28Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 143Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\MethodSymbol.vb (3)
168Public Overridable Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 169Return ImmutableArray(Of VisualBasicAttributeData).Empty 1135Return ImmutableArrayExtensions.Cast(Of VisualBasicAttributeData, AttributeData)(Me.GetReturnTypeAttributes)
Symbols\PropertySymbol.vb (3)
285''' <returns>Returns an array of <see cref="VisualBasicAttributeData"/> or an empty array if there are no attributes.</returns> 289Public Function GetFieldAttributes() As ImmutableArray(Of VisualBasicAttributeData) 291Return If(field Is Nothing, ImmutableArray(Of VisualBasicAttributeData).Empty, field.GetAttributes())
Symbols\ReducedExtensionMethodSymbol.vb (4)
519Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 615Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 744Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1005Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Retargeting\RetargetingAssemblySymbol.vb (2)
82Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 146Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Retargeting\RetargetingEventSymbol.vb (3)
31Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 79Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 83Friend Overrides Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Retargeting\RetargetingFieldSymbol.vb (3)
41Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 106Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 110Friend Overrides Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Retargeting\RetargetingMethodSymbol.vb (5)
47Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 53Private _lazyReturnTypeCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 376Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 380Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 384Friend Overrides Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Retargeting\RetargetingModuleSymbol.vb (2)
63Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 132Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (3)
46Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 473Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 477Friend Overrides Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Retargeting\RetargetingParameterSymbol.vb (3)
31Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 216Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 220Friend Overrides Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Retargeting\RetargetingPropertySymbol.vb (3)
35Private _lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData) 95Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 99Friend Overrides Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (10)
658Private Function RetargetAttributes(oldAttributes As ImmutableArray(Of VisualBasicAttributeData)) As ImmutableArray(Of VisualBasicAttributeData) 662Friend Iterator Function RetargetAttributes(attributes As IEnumerable(Of VisualBasicAttributeData)) As IEnumerable(Of VisualBasicAttributeData) 668Private Function RetargetAttributeData(oldAttribute As VisualBasicAttributeData) As VisualBasicAttributeData 787Friend Function GetRetargetedAttributes(underlyingSymbol As Symbol, ByRef lazyCustomAttributes As ImmutableArray(Of VisualBasicAttributeData), Optional getReturnTypeAttributes As Boolean = False) As ImmutableArray(Of VisualBasicAttributeData) 789Dim oldAttributes As ImmutableArray(Of VisualBasicAttributeData) 804Dim retargetedAttributes As ImmutableArray(Of VisualBasicAttributeData) = RetargetAttributes(oldAttributes)
Symbols\Retargeting\RetargetingTypeParameterSymbol.vb (1)
137Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Source\CrefTypeParameterSymbol.vb (2)
48Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 49Return ImmutableArray(Of VisualBasicAttributeData).Empty
Symbols\Source\SourceAssemblySymbol.vb (37)
48Private _lazySourceAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 50Private _lazyNetModuleAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 174Private Function IsKnownAssemblyAttribute(attribute As VisualBasicAttributeData) As Boolean 207Private Function GetUniqueSourceAssemblyAttributes(<Out> ByRef attributeIndicesToSkip As HashSet(Of Integer)) As HashSet(Of VisualBasicAttributeData) 208Dim appliedSourceAttributes As ImmutableArray(Of VisualBasicAttributeData) = Me.GetSourceAttributesBag().Attributes 210Dim uniqueAttributes As HashSet(Of VisualBasicAttributeData) = Nothing 214Dim attribute As VisualBasicAttributeData = appliedSourceAttributes(i) 229Private Shared Function AddUniqueAssemblyAttribute(attribute As VisualBasicAttributeData, ByRef uniqueAttributes As HashSet(Of VisualBasicAttributeData)) As Boolean 233uniqueAttributes = New HashSet(Of VisualBasicAttributeData)(comparer:=CommonAttributeDataComparer.Instance) 239Private Function ValidateAttributeUsageForNetModuleAttribute(attribute As VisualBasicAttributeData, netModuleName As String, diagnostics As BindingDiagnosticBag, ByRef uniqueAttributes As HashSet(Of VisualBasicAttributeData)) As Boolean 287Private Function GetNetModuleAttributes(<Out> ByRef netModuleNames As ImmutableArray(Of String)) As ImmutableArray(Of VisualBasicAttributeData) 289Dim moduleAssemblyAttributesBuilder As ArrayBuilder(Of VisualBasicAttributeData) = Nothing 297moduleAssemblyAttributesBuilder = ArrayBuilder(Of VisualBasicAttributeData).GetInstance() 307Return ImmutableArray(Of VisualBasicAttributeData).Empty 315attributesFromNetModules As ImmutableArray(Of VisualBasicAttributeData), 332Dim uniqueAttributes As HashSet(Of VisualBasicAttributeData) = GetUniqueSourceAssemblyAttributes(attributeIndicesToSkip) 334Dim arguments = New DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)() 343Dim attribute As VisualBasicAttributeData = attributesFromNetModules(i) 370Private Sub LoadAndValidateNetModuleAttributes(ByRef lazyNetModuleAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData)) 379Interlocked.CompareExchange(lazyNetModuleAttributesBag, CustomAttributesBag(Of VisualBasicAttributeData).Empty, Nothing) 383Dim attributesFromNetModules As ImmutableArray(Of VisualBasicAttributeData) = GetNetModuleAttributes(netModuleNames) 426Dim netModuleAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 429netModuleAttributesBag = New CustomAttributesBag(Of VisualBasicAttributeData)() 434netModuleAttributesBag = CustomAttributesBag(Of VisualBasicAttributeData).Empty 516Friend Function GetNetModuleAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 521Private Function GetNetModuleAttributes() As ImmutableArray(Of VisualBasicAttributeData) 541Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 559Friend Function GetSourceAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 574Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazySourceAttributesBag 604Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.GetSourceAttributesBag() 957Private Function ProcessOneInternalsVisibleToAttribute(nodeOpt As AttributeSyntax, attrData As VisualBasicAttributeData, diagnostics As BindingDiagnosticBag) As Boolean 1015Friend Overrides Sub DecodeWellKnownAttribute(ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) 1171Private Sub ValidateIntegralAttributeNonNegativeArguments(attrData As VisualBasicAttributeData, nodeOpt As AttributeSyntax, diagnostics As BindingDiagnosticBag) 1178diagnostics.Add(ERRID.ERR_BadAttribute1, VisualBasicAttributeData.GetArgumentLocation(nodeOpt, i), attrData.AttributeClass) 1824Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazySourceAttributesBag
Symbols\Source\SourceClonedParameterSymbol.vb (1)
66Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Source\SourceComplexParameterSymbol.vb (4)
23Private _lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 88Friend Overrides Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 109Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag 118Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag
Symbols\Source\SourceEventSymbol.vb (7)
53Private _lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 615Public NotOverridable Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 619Private Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 627Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag 635Friend Overrides Function EarlyDecodeWellKnownAttribute(ByRef arguments As EarlyDecodeWellKnownAttributeArguments(Of EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation)) As VisualBasicAttributeData 639Dim boundAttribute As VisualBasicAttributeData = Nothing 653Friend Overrides Sub DecodeWellKnownAttribute(ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation))
Symbols\Source\SourceFieldSymbol.vb (11)
33Private _lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 646Public NotOverridable Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 650Private Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 658Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag 668Friend Sub SetCustomAttributeData(attributeData As CustomAttributesBag(Of VisualBasicAttributeData)) 711Friend NotOverridable Overrides Function EarlyDecodeWellKnownAttribute(ByRef arguments As EarlyDecodeWellKnownAttributeArguments(Of EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation)) As VisualBasicAttributeData 715Dim BoundAttribute As VisualBasicAttributeData = Nothing 729Friend NotOverridable Overrides Sub DecodeWellKnownAttribute(ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) 753diagnostics.Add(ERRID.ERR_BadAttribute1, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.AttributeSyntaxOpt), attrData.AttributeClass) 760MarshalAsAttributeDecoder(Of CommonFieldWellKnownAttributeData, AttributeSyntax, VisualBasicAttributeData, AttributeLocation).Decode(arguments, AttributeTargets.Field, MessageProvider.Instance) 775Private Sub VerifyConstantValueMatches(attrValue As ConstantValue, ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation))
Symbols\Source\SourceMemberFieldSymbol.vb (1)
611fieldSymbol.SetCustomAttributeData(CustomAttributesBag(Of VisualBasicAttributeData).Empty)
Symbols\Source\SourceMethodSymbol.vb (24)
37Protected m_lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 41Protected m_lazyReturnTypeCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 1389Private Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 1393Private Function GetReturnTypeAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 1397Private Function GetAttributesBag(ByRef lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData), forReturnType As Boolean) As CustomAttributesBag(Of VisualBasicAttributeData) 1433Public NotOverridable Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1466Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.m_lazyCustomAttributesBag 1477Public NotOverridable Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1482Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.m_lazyReturnTypeCustomAttributesBag 1490Friend Overrides Function EarlyDecodeWellKnownAttribute(ByRef arguments As EarlyDecodeWellKnownAttributeArguments(Of EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation)) As VisualBasicAttributeData 1496If VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CaseInsensitiveExtensionAttribute) Then 1523ElseIf VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.ConditionalAttribute) Then 1533Dim BoundAttribute As VisualBasicAttributeData = Nothing 1556Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.m_lazyCustomAttributesBag 1569Friend Overrides Sub DecodeWellKnownAttribute(ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) 1593Private Sub DecodeWellKnownAttributeAppliedToMethod(ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) 1642AttributeData.DecodeMethodImplAttribute(Of MethodWellKnownAttributeData, AttributeSyntax, VisualBasicAttributeData, AttributeLocation)(arguments, MessageProvider.Instance) 1650diagnostics.Add(ERRID.ERR_BadAttribute1, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.AttributeSyntaxOpt), attrData.AttributeClass) 1748ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation), 1763Private Sub DecodeWellKnownAttributeAppliedToReturnValue(ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) 1769MarshalAsAttributeDecoder(Of CommonReturnTypeWellKnownAttributeData, AttributeSyntax, VisualBasicAttributeData, AttributeLocation).Decode(arguments, AttributeTargets.ReturnValue, MessageProvider.Instance) 1826boundAttributes As ImmutableArray(Of VisualBasicAttributeData), 1925Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.GetAttributesBag()
Symbols\Source\SourceModuleSymbol.vb (10)
40Private _lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 236Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 240Private Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 249Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag 959Friend Sub AtomicStoreAttributesAndDiagnostics(attributesBag As CustomAttributesBag(Of VisualBasicAttributeData), 960attributesToStore As ImmutableArray(Of VisualBasicAttributeData), 989Private Sub RecordPresenceOfBadAttributes(attributes As ImmutableArray(Of VisualBasicAttributeData)) 1072Friend Overrides Sub DecodeWellKnownAttribute(ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) 1086DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_BadAttribute1, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.AttributeSyntaxOpt), attrData.AttributeClass) 1201Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag
Symbols\Source\SourceNamedTypeSymbol.vb (18)
32Protected m_lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 1844Private Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 1857Public NotOverridable Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1862Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.m_lazyCustomAttributesBag 1918Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.m_lazyCustomAttributesBag 2009Friend Overrides Function EarlyDecodeWellKnownAttribute(ByRef arguments As EarlyDecodeWellKnownAttributeArguments(Of EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation)) As VisualBasicAttributeData 2014If VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.VisualBasicEmbeddedAttribute) Then 2023ElseIf VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CodeAnalysisEmbeddedAttribute) Then 2032ElseIf VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.ComImportAttribute) Then 2041ElseIf VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.ConditionalAttribute) Then 2053Dim boundAttribute As VisualBasicAttributeData = Nothing 2064If VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.AttributeUsageAttribute) Then 2080If VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.InterfaceTypeAttribute) Then 2095ElseIf VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.TypeLibTypeAttribute) Then 2156Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.GetAttributesBag() 2168Friend NotOverridable Overrides Sub DecodeWellKnownAttribute(ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) 2271AttributeData.DecodeStructLayoutAttribute(Of CommonTypeWellKnownAttributeData, AttributeSyntax, VisualBasicAttributeData, AttributeLocation)( 2377boundAttributes As ImmutableArray(Of VisualBasicAttributeData),
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (13)
36Public Sub New(attrData As VisualBasicAttributeData) 306Dim attrData As ImmutableArray(Of VisualBasicAttributeData) = target.GetAttributes() 480Dim attrData As ImmutableArray(Of VisualBasicAttributeData) = target.GetAttributes() 980Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 981Return ImmutableArray(Of VisualBasicAttributeData).Empty 1322Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1324Dim toClone As ImmutableArray(Of VisualBasicAttributeData) = attributeSource.GetAttributes() 1330Dim attributes = ArrayBuilder(Of VisualBasicAttributeData).GetInstance() 1364Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1371Return ImmutableArray(Of VisualBasicAttributeData).Empty 1624Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1626Return ImmutableArray(Of VisualBasicAttributeData).Empty 1848Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (5)
21Dim attributeData As VisualBasicAttributeData = GetMyGroupCollectionAttributeData(diagnostics, binder, attributeSyntax) 122Private Function GetMyGroupCollectionAttributeData(diagnostics As BindingDiagnosticBag, <Out> ByRef binder As Binder, <Out> ByRef attributeSyntax As AttributeSyntax) As VisualBasicAttributeData 130Dim attributeData As VisualBasicAttributeData = Nothing 144If VisualBasicAttributeData.IsTargetEarlyAttribute(attributeType, attr, AttributeDescription.MyGroupCollectionAttribute) Then 177Dim data As VisualBasicAttributeData = (New EarlyWellKnownAttributeBinder(Me, binder)).GetAttribute(attr, attributeType, generatedDiagnostics)
Symbols\Source\SourceParameterSymbol.vb (19)
150Friend MustOverride Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 179Public NotOverridable Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 183Friend Overrides Function EarlyDecodeWellKnownAttribute(ByRef arguments As EarlyDecodeWellKnownAttributeArguments(Of EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation)) As VisualBasicAttributeData 187If VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.MarshalAsAttribute) Then 221VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.ParamArrayAttribute) Then 233If VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.DefaultParameterValueAttribute) Then 235ElseIf VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.DecimalConstantAttribute) Then 237ElseIf VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.DateTimeConstantAttribute) Then 239ElseIf VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CallerLineNumberAttribute) Then 241ElseIf VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CallerFilePathAttribute) Then 243ElseIf VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CallerMemberNameAttribute) Then 245ElseIf VisualBasicAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CallerArgumentExpressionAttribute) Then 267Friend Overrides Iterator Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData) 295Private Function EarlyDecodeAttributeForDefaultParameterValue(description As AttributeDescription, ByRef arguments As EarlyDecodeWellKnownAttributeArguments(Of EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation)) As VisualBasicAttributeData 319Friend Overrides Sub DecodeWellKnownAttribute(ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) 360MarshalAsAttributeDecoder(Of CommonParameterWellKnownAttributeData, AttributeSyntax, VisualBasicAttributeData, AttributeLocation).Decode(arguments, AttributeTargets.Parameter, MessageProvider.Instance) 373Private Sub DecodeDefaultParameterValueAttribute(description As AttributeDescription, ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) 402Private Function DecodeDefaultParameterValueAttribute(description As AttributeDescription, attribute As VisualBasicAttributeData) As ConstantValue 415Private Function DecodeDefaultParameterValueAttribute(attribute As VisualBasicAttributeData) As ConstantValue
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
483Friend Overrides Sub DecodeWellKnownAttribute(ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation))
Symbols\Source\SourcePropertySymbol.vb (14)
42Private _lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 45Private _lazyReturnTypeCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 106prop.SetCustomAttributeData(CustomAttributesBag(Of VisualBasicAttributeData).Empty) 268prop.SetCustomAttributeData(CustomAttributesBag(Of VisualBasicAttributeData).Empty) 495Friend Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 502Friend Function GetReturnTypeAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 517Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 522Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag 531Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyReturnTypeCustomAttributesBag 539Friend Overrides Function EarlyDecodeWellKnownAttribute(ByRef arguments As EarlyDecodeWellKnownAttributeArguments(Of EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation)) As VisualBasicAttributeData 542Dim boundAttribute As VisualBasicAttributeData = Nothing 556Friend Overrides Sub DecodeWellKnownAttribute(ByRef arguments As DecodeWellKnownAttributeArguments(Of AttributeSyntax, VisualBasicAttributeData, AttributeLocation)) 579MarshalAsAttributeDecoder(Of CommonReturnTypeWellKnownAttributeData, AttributeSyntax, VisualBasicAttributeData, AttributeLocation). 1185Private Sub SetCustomAttributeData(attributeData As CustomAttributesBag(Of VisualBasicAttributeData))
Symbols\Source\SourceSimpleParameterSymbol.vb (2)
56Friend Overrides Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 63Return CustomAttributesBag(Of VisualBasicAttributeData).Empty
Symbols\Source\SourceTypeParameterSymbol.vb (2)
40Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 41Return ImmutableArray(Of VisualBasicAttributeData).Empty
Symbols\SubstitutedEventSymbol.vb (1)
121Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\SubstitutedFieldSymbol.vb (1)
127Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\SubstitutedMethodSymbol.vb (1)
160Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\SubstitutedNamedType.vb (1)
230Public NotOverridable Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\SubstitutedParameterSymbol.vb (1)
58Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\SubstitutedPropertySymbol.vb (1)
113Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\SubstitutedTypeParameterSymbol.vb (1)
113Public Overloads Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (2)
354Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 355Return ImmutableArray(Of VisualBasicAttributeData).Empty
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (2)
322Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 323Return ImmutableArray(Of VisualBasicAttributeData).Empty
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (2)
150Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData) 151Return ImmutableArray(Of VisualBasicAttributeData).Empty
Symbols\Tuples\TupleEventSymbol.vb (1)
104Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Tuples\TupleFieldSymbol.vb (1)
96Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Tuples\TupleMethodSymbol.vb (2)
119Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 123Public Overrides Function GetReturnTypeAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Tuples\TuplePropertySymbol.vb (1)
132Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Tuples\TupleTypeSymbol.vb (2)
966Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData) 1053Friend Overrides Function GetCustomAttributesToEmit(moduleBuilder As PEModuleBuilder) As IEnumerable(Of VisualBasicAttributeData)
Symbols\UnboundGenericType.vb (1)
245Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)
Symbols\Wrapped\WrappedParameterSymbol.vb (1)
174Public Overrides Function GetAttributes() As ImmutableArray(Of VisualBasicAttributeData)