1 write to AdaptedMethodSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Emit\MethodSymbolAdapter.vb (1)
568AdaptedMethodSymbol = underlyingMethodSymbol
104 references to AdaptedMethodSymbol
Microsoft.CodeAnalysis.VisualBasic (104)
Emit\MethodSymbolAdapter.vb (77)
30If Not AdaptedMethodSymbol.IsDefinition AndAlso AdaptedMethodSymbol.IsGenericMethod AndAlso AdaptedMethodSymbol IsNot AdaptedMethodSymbol.ConstructedFrom Then 42If Not AdaptedMethodSymbol.IsDefinition AndAlso (Not AdaptedMethodSymbol.IsGenericMethod OrElse AdaptedMethodSymbol Is AdaptedMethodSymbol.ConstructedFrom) Then 43Debug.Assert(AdaptedMethodSymbol.ContainingType IsNot Nothing AndAlso IsOrInGenericType(AdaptedMethodSymbol.ContainingType)) 59If Not AdaptedMethodSymbol.IsDefinition Then 60Return moduleBeingBuilt.Translate(AdaptedMethodSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics) 61ElseIf TypeOf AdaptedMethodSymbol Is SynthesizedGlobalMethodBase Then 67Return moduleBeingBuilt.Translate(AdaptedMethodSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics, needDeclaration:=True) 73If Not AdaptedMethodSymbol.IsDefinition Then 74If AdaptedMethodSymbol.IsGenericMethod AndAlso AdaptedMethodSymbol IsNot AdaptedMethodSymbol.ConstructedFrom Then 83If AdaptedMethodSymbol.ContainingModule = moduleBeingBuilt.SourceModule Then 94Return AdaptedMethodSymbol.MetadataName 100Return AdaptedMethodSymbol.IsVararg 106Return CType(AdaptedMethodSymbol.Arity, UShort) 112Return AdaptedMethodSymbol.IsGenericMethod 118Return CType(AdaptedMethodSymbol.ParameterCount, UShort) 131If AdaptedMethodSymbol.IsDefinition AndAlso 132AdaptedMethodSymbol.ContainingModule = moduleBeingBuilt.SourceModule Then 133Debug.Assert(AdaptedMethodSymbol.PartialDefinitionPart Is Nothing) ' must be definition 148Return AdaptedMethodSymbol.CallingConvention 157For Each p In AdaptedMethodSymbol.Parameters 162If AdaptedMethodSymbol.IsDefinition AndAlso AdaptedMethodSymbol.ContainingModule = moduleBeingBuilt.SourceModule Then 165Return moduleBeingBuilt.Translate(AdaptedMethodSymbol.Parameters) 170Debug.Assert(AdaptedMethodSymbol.Parameters.All(Function(p) p.IsDefinition)) 172Return AdaptedMethodSymbol.Parameters.SelectAsArray(Of Cci.IParameterTypeInformation)(Function(p) p.GetCciAdapter()) 180Return AdaptedMethodSymbol.ReturnTypeCustomModifiers.As(Of Cci.ICustomModifier) 186Return AdaptedMethodSymbol.RefCustomModifiers.As(Of Cci.ICustomModifier) 192Return AdaptedMethodSymbol.ReturnsByRef 199Dim returnType As TypeSymbol = AdaptedMethodSymbol.ReturnType 208Return From arg In AdaptedMethodSymbol.TypeArguments 215Dim container As NamedTypeSymbol = AdaptedMethodSymbol.ContainingType 220AdaptedMethodSymbol.OriginalDefinition, 226Dim methodSymbol As MethodSymbol = AdaptedMethodSymbol.ConstructedFrom 233Return AdaptedMethodSymbol.OriginalDefinition.GetCciAdapter() 241Dim synthesizedGlobalMethod = TryCast(AdaptedMethodSymbol, SynthesizedGlobalMethodBase) 246Return AdaptedMethodSymbol.ContainingType.GetCciAdapter() 253Return PEModuleBuilder.MemberVisibility(AdaptedMethodSymbol) 259Return (DirectCast(context.Module, PEModuleBuilder)).GetMethodBody(AdaptedMethodSymbol) 265Debug.Assert(AdaptedMethodSymbol.TypeParameters.All(Function(param) param Is param.OriginalDefinition)) 267Return AdaptedMethodSymbol.TypeParameters.Select(Function(t) t.GetCciAdapter()) 277Return AdaptedMethodSymbol.HasDeclarativeSecurity 284Return AdaptedMethodSymbol.IsMustOverride 291Return AdaptedMethodSymbol.IsAccessCheckedOnOverride 298Return AdaptedMethodSymbol.MethodKind = MethodKind.Constructor 305Return AdaptedMethodSymbol.IsExternal 311Return AdaptedMethodSymbol.ImplementationAttributes Or 312If(DirectCast(context.Module, PEModuleBuilder).JITOptimizationIsDisabled(AdaptedMethodSymbol), MethodSymbol.DisableJITOptimizationFlags, Nothing) 318Return AdaptedMethodSymbol.IsHiddenBySignature 325Return AdaptedMethodSymbol.IsMetadataNewSlot() 332Return AdaptedMethodSymbol.GetDllImportData() IsNot Nothing 339Return AdaptedMethodSymbol.GetDllImportData() 346Return AdaptedMethodSymbol.HasRuntimeSpecialName 353Return AdaptedMethodSymbol.IsMetadataFinal 360Return AdaptedMethodSymbol.HasSpecialName 367Return AdaptedMethodSymbol.IsShared 374Return AdaptedMethodSymbol.IsMetadataVirtual() 383For Each p In AdaptedMethodSymbol.Parameters 387Return AdaptedMethodSymbol.Parameters.SelectAsArray(Of Cci.IParameterDefinition)(Function(p) p.GetCciAdapter()) 407userDefined = AdaptedMethodSymbol.GetReturnTypeAttributes() 408AdaptedMethodSymbol.AddSynthesizedReturnTypeAttributes(synthesized) 412Return AdaptedMethodSymbol.GetCustomAttributesToEmit(userDefined, synthesized, isReturnType:=True, emittingAssemblyAttributesInNetModule:=False) 418Return AdaptedMethodSymbol.ReturnValueIsMarshalledExplicitly 425Return AdaptedMethodSymbol.ReturnTypeMarshallingInformation 432Return AdaptedMethodSymbol.ReturnValueMarshallingDescriptor 439Debug.Assert(AdaptedMethodSymbol.HasDeclarativeSecurity) 440Dim securityAttributes As IEnumerable(Of Cci.SecurityAttribute) = AdaptedMethodSymbol.GetSecurityInformation() 448Return AdaptedMethodSymbol.ContainingNamespace.GetCciAdapter() 573Return AdaptedMethodSymbol
Emit\NoPia\EmbeddedMethod.vb (23)
30Return UnderlyingMethod.AdaptedMethodSymbol.GetCustomAttributesToEmit(moduleBuilder) 34Return EmbeddedTypesManager.EmbedParameters(Me, UnderlyingMethod.AdaptedMethodSymbol.Parameters) 38Return UnderlyingMethod.AdaptedMethodSymbol.TypeParameters.SelectAsArray(Function(typeParameter, container) New EmbeddedTypeParameter(container, typeParameter.GetCciAdapter()), Me) 43Return UnderlyingMethod.AdaptedMethodSymbol.IsMustOverride 49Return UnderlyingMethod.AdaptedMethodSymbol.IsAccessCheckedOnOverride 55Return UnderlyingMethod.AdaptedMethodSymbol.MethodKind = MethodKind.Constructor 61Return UnderlyingMethod.AdaptedMethodSymbol.IsExternal 67Return UnderlyingMethod.AdaptedMethodSymbol.IsHiddenBySignature 73Return UnderlyingMethod.AdaptedMethodSymbol.IsMetadataNewSlot() 79Return UnderlyingMethod.AdaptedMethodSymbol.GetDllImportData() 85Return UnderlyingMethod.AdaptedMethodSymbol.HasRuntimeSpecialName 91Return UnderlyingMethod.AdaptedMethodSymbol.HasSpecialName 97Return UnderlyingMethod.AdaptedMethodSymbol.IsMetadataFinal 103Return UnderlyingMethod.AdaptedMethodSymbol.IsShared 109Return UnderlyingMethod.AdaptedMethodSymbol.IsMetadataVirtual() 114Return UnderlyingMethod.AdaptedMethodSymbol.ImplementationAttributes 119Return UnderlyingMethod.AdaptedMethodSymbol.ReturnValueIsMarshalledExplicitly 125Return UnderlyingMethod.AdaptedMethodSymbol.ReturnTypeMarshallingInformation 131Return UnderlyingMethod.AdaptedMethodSymbol.ReturnValueMarshallingDescriptor 137Return PEModuleBuilder.MemberVisibility(UnderlyingMethod.AdaptedMethodSymbol) 143Return UnderlyingMethod.AdaptedMethodSymbol.MetadataName 149Return UnderlyingMethod.AdaptedMethodSymbol.IsVararg 161Return UnderlyingMethod.AdaptedMethodSymbol.ContainingNamespace.GetCciAdapter()
Emit\NoPia\EmbeddedTypesManager.vb (4)
386Debug.Assert(method.AdaptedMethodSymbol.IsDefinition) 387Debug.Assert(Not method.AdaptedMethodSymbol.IsDefaultValueTypeConstructor()) 409ReportDiagnostic(diagnostics, ERRID.ERR_InteropMethodWithBody1, syntaxNodeOpt, method.AdaptedMethodSymbol.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)) 414Dim propertyOrEvent = method.AdaptedMethodSymbol.AssociatedSymbol