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