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