1 write to AdaptedMethodSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Emit\MethodSymbolAdapter.vb (1)
586AdaptedMethodSymbol = underlyingMethodSymbol
76 references to AdaptedMethodSymbol
Microsoft.CodeAnalysis.VisualBasic (76)
Emit\MethodSymbolAdapter.vb (76)
38If Not AdaptedMethodSymbol.IsDefinition AndAlso AdaptedMethodSymbol.IsGenericMethod AndAlso AdaptedMethodSymbol IsNot AdaptedMethodSymbol.ConstructedFrom Then 50If Not AdaptedMethodSymbol.IsDefinition AndAlso (Not AdaptedMethodSymbol.IsGenericMethod OrElse AdaptedMethodSymbol Is AdaptedMethodSymbol.ConstructedFrom) Then 51Debug.Assert(AdaptedMethodSymbol.ContainingType IsNot Nothing AndAlso IsOrInGenericType(AdaptedMethodSymbol.ContainingType)) 67If Not AdaptedMethodSymbol.IsDefinition Then 68Return moduleBeingBuilt.Translate(AdaptedMethodSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics) 69ElseIf TypeOf AdaptedMethodSymbol Is SynthesizedGlobalMethodBase Then 75Return moduleBeingBuilt.Translate(AdaptedMethodSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics, needDeclaration:=True) 81If Not AdaptedMethodSymbol.IsDefinition Then 82If AdaptedMethodSymbol.IsGenericMethod AndAlso AdaptedMethodSymbol IsNot AdaptedMethodSymbol.ConstructedFrom Then 91If AdaptedMethodSymbol.ContainingModule = moduleBeingBuilt.SourceModule Then 102Return AdaptedMethodSymbol.MetadataName 108Return AdaptedMethodSymbol.IsVararg 114Return CType(AdaptedMethodSymbol.Arity, UShort) 120Return CType(AdaptedMethodSymbol.ParameterCount, UShort) 133If AdaptedMethodSymbol.IsDefinition AndAlso 134AdaptedMethodSymbol.ContainingModule = moduleBeingBuilt.SourceModule Then 135Debug.Assert(AdaptedMethodSymbol.PartialDefinitionPart Is Nothing) ' must be definition 150Return AdaptedMethodSymbol.CallingConvention 159For Each p In AdaptedMethodSymbol.Parameters 164If AdaptedMethodSymbol.IsDefinition AndAlso AdaptedMethodSymbol.ContainingModule = moduleBeingBuilt.SourceModule Then 167Return moduleBeingBuilt.Translate(AdaptedMethodSymbol.Parameters) 172Debug.Assert(AdaptedMethodSymbol.Parameters.All(Function(p) p.IsDefinition)) 174Return AdaptedMethodSymbol.Parameters.SelectAsArray(Of Cci.IParameterTypeInformation)(Function(p) p.GetCciAdapter()) 182Return AdaptedMethodSymbol.ReturnTypeCustomModifiers.As(Of Cci.ICustomModifier) 188Return AdaptedMethodSymbol.RefCustomModifiers.As(Of Cci.ICustomModifier) 194Return AdaptedMethodSymbol.ReturnsByRef 201Dim returnType As TypeSymbol = AdaptedMethodSymbol.ReturnType 210Return From arg In AdaptedMethodSymbol.TypeArguments 217Dim container As NamedTypeSymbol = AdaptedMethodSymbol.ContainingType 222AdaptedMethodSymbol.OriginalDefinition, 228Dim methodSymbol As MethodSymbol = AdaptedMethodSymbol.ConstructedFrom 235Return AdaptedMethodSymbol.OriginalDefinition.GetCciAdapter() 243Dim synthesizedGlobalMethod = TryCast(AdaptedMethodSymbol, SynthesizedGlobalMethodBase) 248Return AdaptedMethodSymbol.ContainingType.GetCciAdapter() 255Return AdaptedMethodSymbol.MetadataVisibility 268Return (DirectCast(context.Module, PEModuleBuilder)).GetMethodBody(AdaptedMethodSymbol) 274Debug.Assert(AdaptedMethodSymbol.TypeParameters.All(Function(param) param Is param.OriginalDefinition)) 276Return AdaptedMethodSymbol.TypeParameters.Select(Function(t) t.GetCciAdapter()) 286Return AdaptedMethodSymbol.HasDeclarativeSecurity 293Return AdaptedMethodSymbol.IsMustOverride 300Return AdaptedMethodSymbol.IsAccessCheckedOnOverride 307Return AdaptedMethodSymbol.MethodKind = MethodKind.Constructor 314Return AdaptedMethodSymbol.IsExternal 320Return AdaptedMethodSymbol.ImplementationAttributes Or 321If(DirectCast(context.Module, PEModuleBuilder).JITOptimizationIsDisabled(AdaptedMethodSymbol), MethodSymbol.DisableJITOptimizationFlags, Nothing) 327Return AdaptedMethodSymbol.IsHiddenBySignature 334Return AdaptedMethodSymbol.IsMetadataNewSlot() 341Return AdaptedMethodSymbol.GetDllImportData() IsNot Nothing 348Return AdaptedMethodSymbol.GetDllImportData() 355Return AdaptedMethodSymbol.HasRuntimeSpecialName 362Return AdaptedMethodSymbol.IsMetadataFinal 369Return AdaptedMethodSymbol.HasSpecialName 376Return AdaptedMethodSymbol.IsShared 383Return AdaptedMethodSymbol.IsMetadataVirtual() 392For Each p In AdaptedMethodSymbol.Parameters 396Return AdaptedMethodSymbol.Parameters.SelectAsArray(Of Cci.IParameterDefinition)(Function(p) p.GetCciAdapter()) 416userDefined = AdaptedMethodSymbol.GetReturnTypeAttributes() 417AdaptedMethodSymbol.AddSynthesizedReturnTypeAttributes(synthesized) 421Return AdaptedMethodSymbol.GetCustomAttributesToEmit(userDefined, synthesized, isReturnType:=True, emittingAssemblyAttributesInNetModule:=False) 427Return AdaptedMethodSymbol.ReturnValueIsMarshalledExplicitly 434Return AdaptedMethodSymbol.ReturnTypeMarshallingInformation 441Return AdaptedMethodSymbol.ReturnValueMarshallingDescriptor 448Debug.Assert(AdaptedMethodSymbol.HasDeclarativeSecurity) 449Dim securityAttributes As IEnumerable(Of Cci.SecurityAttribute) = AdaptedMethodSymbol.GetSecurityInformation() 457Return AdaptedMethodSymbol.ContainingNamespace.GetCciAdapter() 591Return AdaptedMethodSymbol