1 write to AdaptedMethodSymbol
Microsoft.CodeAnalysis.CSharp (1)
Emitter\Model\MethodSymbolAdapter.cs (1)
725
AdaptedMethodSymbol
= underlyingMethodSymbol;
101 references to AdaptedMethodSymbol
Microsoft.CodeAnalysis.CSharp (101)
Emitter\Model\MethodSymbolAdapter.cs (76)
41
if (!
AdaptedMethodSymbol
.IsDefinition &&
42
AdaptedMethodSymbol
.IsGenericMethod)
57
if (!
AdaptedMethodSymbol
.IsDefinition &&
58
(!
AdaptedMethodSymbol
.IsGenericMethod || PEModuleBuilder.IsGenericType(
AdaptedMethodSymbol
.ContainingType)))
60
Debug.Assert((object)
AdaptedMethodSymbol
.ContainingType != null &&
61
PEModuleBuilder.IsGenericType(
AdaptedMethodSymbol
.ContainingType));
78
var synthesizedGlobalMethod =
AdaptedMethodSymbol
.OriginalDefinition as SynthesizedGlobalMethodSymbol;
84
NamedTypeSymbol containingType =
AdaptedMethodSymbol
.ContainingType;
86
if (
AdaptedMethodSymbol
is SynthesizedExtensionMarker marker)
90
else if (
AdaptedMethodSymbol
.GetIsNewExtensionMember())
100
needDeclaration:
AdaptedMethodSymbol
.IsDefinition);
107
if (!
AdaptedMethodSymbol
.IsDefinition)
109
if (
AdaptedMethodSymbol
.IsGenericMethod)
123
if (
AdaptedMethodSymbol
.ContainingModule == moduleBeingBuilt.SourceModule)
137
get { return
AdaptedMethodSymbol
.MetadataName; }
144
return
AdaptedMethodSymbol
.IsVararg;
152
return (ushort)
AdaptedMethodSymbol
.Arity;
160
return (ushort)
AdaptedMethodSymbol
.ParameterCount;
174
if (
AdaptedMethodSymbol
.IsDefinition && // can't be generic instantiation
175
AdaptedMethodSymbol
.ContainingModule == moduleBeingBuilt.SourceModule) // must be declared in the module we are building
177
Debug.Assert((object)
AdaptedMethodSymbol
.PartialDefinitionPart == null); // must be definition
196
return
AdaptedMethodSymbol
.CallingConvention;
205
if (
AdaptedMethodSymbol
.IsDefinition &&
AdaptedMethodSymbol
.ContainingModule == moduleBeingBuilt.SourceModule)
211
return moduleBeingBuilt.Translate(
AdaptedMethodSymbol
.Parameters);
217
Debug.Assert(
AdaptedMethodSymbol
.Parameters.All(p => p.IsDefinition));
220
return
AdaptedMethodSymbol
.Parameters.SelectAsArray<ParameterSymbol, Cci.IParameterDefinition>(p => p.GetCciAdapter());
230
return ImmutableArray<Cci.ICustomModifier>.CastUp(
AdaptedMethodSymbol
.ReturnTypeWithAnnotations.CustomModifiers);
238
return ImmutableArray<Cci.ICustomModifier>.CastUp(
AdaptedMethodSymbol
.RefCustomModifiers);
246
return
AdaptedMethodSymbol
.RefKind.IsManagedReference();
252
return ((PEModuleBuilder)context.Module).Translate(
AdaptedMethodSymbol
.ReturnType,
263
foreach (var arg in
AdaptedMethodSymbol
.TypeArgumentsWithAnnotations)
276
NamedTypeSymbol container =
AdaptedMethodSymbol
.ContainingType;
282
(MethodSymbol)
AdaptedMethodSymbol
.OriginalDefinition,
288
MethodSymbol methodSymbol =
AdaptedMethodSymbol
.ConstructedFrom;
298
return ((MethodSymbol)
AdaptedMethodSymbol
.OriginalDefinition).GetCciAdapter();
308
if (
AdaptedMethodSymbol
.OriginalDefinition is SynthesizedGlobalMethodSymbol synthesizedGlobalMethod)
314
if (
AdaptedMethodSymbol
is SynthesizedExtensionMarker marker)
316
return ((SourceMemberContainerTypeSymbol)
AdaptedMethodSymbol
.ContainingType.ContainingType).GetExtensionGroupingInfo().GetCorrespondingMarkerType(marker);
318
else if (
AdaptedMethodSymbol
.GetIsNewExtensionMember())
320
var containingType =
AdaptedMethodSymbol
.ContainingType;
324
return
AdaptedMethodSymbol
.ContainingType.GetCciAdapter();
333
return
AdaptedMethodSymbol
.MetadataVisibility;
349
return ((PEModuleBuilder)context.Module).GetMethodBody(
AdaptedMethodSymbol
);
358
foreach (var @param in
AdaptedMethodSymbol
.TypeParameters)
371
return
AdaptedMethodSymbol
.HasDeclarativeSecurity;
380
Debug.Assert(
AdaptedMethodSymbol
.HasDeclarativeSecurity);
381
return
AdaptedMethodSymbol
.GetSecurityInformation();
390
return
AdaptedMethodSymbol
.IsAbstract;
400
return
AdaptedMethodSymbol
.IsAccessCheckedOnOverride;
409
return
AdaptedMethodSymbol
.MethodKind == MethodKind.Constructor;
419
return !
AdaptedMethodSymbol
.ContainingType.IsExtension &&
AdaptedMethodSymbol
.IsExternal;
428
return !
AdaptedMethodSymbol
.HidesBaseMethodsByName;
437
return
AdaptedMethodSymbol
.IsMetadataNewSlot();
446
return !
AdaptedMethodSymbol
.ContainingType.IsExtension &&
AdaptedMethodSymbol
.GetDllImportData() != null;
455
return
AdaptedMethodSymbol
.ContainingType.IsExtension ? null :
AdaptedMethodSymbol
.GetDllImportData();
462
return
AdaptedMethodSymbol
.ContainingType.IsExtension ? default :
AdaptedMethodSymbol
.ImplementationAttributes;
470
return
AdaptedMethodSymbol
.HasRuntimeSpecialName;
479
return
AdaptedMethodSymbol
.IsMetadataFinal;
488
return
AdaptedMethodSymbol
.HasSpecialName;
497
return
AdaptedMethodSymbol
.IsStatic;
506
return
AdaptedMethodSymbol
.IsMetadataVirtual();
525
return
AdaptedMethodSymbol
.RequiresSecurityObject;
533
ImmutableArray<CSharpAttributeData> userDefined =
AdaptedMethodSymbol
.GetReturnTypeAttributes();
535
AdaptedMethodSymbol
.AddSynthesizedReturnTypeAttributes((PEModuleBuilder)context.Module, ref synthesized);
539
return
AdaptedMethodSymbol
.GetCustomAttributesToEmit(userDefined, synthesized, isReturnType: true, emittingAssemblyAttributesInNetModule: false);
547
return
AdaptedMethodSymbol
.ReturnValueIsMarshalledExplicitly;
556
return
AdaptedMethodSymbol
.ReturnValueMarshallingInformation;
565
return
AdaptedMethodSymbol
.ReturnValueMarshallingDescriptor;
573
return
AdaptedMethodSymbol
.ContainingNamespace.GetCciAdapter();
734
internal sealed override Symbol AdaptedSymbol =>
AdaptedMethodSymbol
;
Emitter\NoPia\EmbeddedMethod.cs (22)
42
return EmbeddedTypesManager.EmbedParameters(this, UnderlyingMethod.
AdaptedMethodSymbol
.Parameters);
47
return UnderlyingMethod.
AdaptedMethodSymbol
.TypeParameters.SelectAsArray((t, m) => new EmbeddedTypeParameter(m, t.GetCciAdapter()), this);
54
return UnderlyingMethod.
AdaptedMethodSymbol
.IsAbstract;
62
return UnderlyingMethod.
AdaptedMethodSymbol
.IsAccessCheckedOnOverride;
70
return UnderlyingMethod.
AdaptedMethodSymbol
.MethodKind == MethodKind.Constructor;
78
return UnderlyingMethod.
AdaptedMethodSymbol
.IsExternal;
86
return !UnderlyingMethod.
AdaptedMethodSymbol
.HidesBaseMethodsByName;
94
return UnderlyingMethod.
AdaptedMethodSymbol
.IsMetadataNewSlot();
102
return UnderlyingMethod.
AdaptedMethodSymbol
.GetDllImportData();
110
return UnderlyingMethod.
AdaptedMethodSymbol
.HasRuntimeSpecialName;
118
return UnderlyingMethod.
AdaptedMethodSymbol
.HasSpecialName;
126
return UnderlyingMethod.
AdaptedMethodSymbol
.IsMetadataFinal;
134
return UnderlyingMethod.
AdaptedMethodSymbol
.IsStatic;
142
return UnderlyingMethod.
AdaptedMethodSymbol
.IsMetadataVirtual();
148
return UnderlyingMethod.
AdaptedMethodSymbol
.ImplementationAttributes;
155
return UnderlyingMethod.
AdaptedMethodSymbol
.ReturnValueIsMarshalledExplicitly;
163
return UnderlyingMethod.
AdaptedMethodSymbol
.ReturnValueMarshallingInformation;
171
return UnderlyingMethod.
AdaptedMethodSymbol
.ReturnValueMarshallingDescriptor;
176
=> UnderlyingMethod.
AdaptedMethodSymbol
.MetadataVisibility;
180
get { return UnderlyingMethod.
AdaptedMethodSymbol
.MetadataName; }
187
return UnderlyingMethod.
AdaptedMethodSymbol
.IsVararg;
203
return UnderlyingMethod.
AdaptedMethodSymbol
.ContainingNamespace.GetCciAdapter();
Emitter\NoPia\EmbeddedTypesManager.cs (3)
473
Debug.Assert(!method.
AdaptedMethodSymbol
.IsDefaultValueTypeConstructor());
502
Error(diagnostics, ErrorCode.ERR_InteropMethodWithBody, syntaxNodeOpt, method.
AdaptedMethodSymbol
.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
508
Symbol propertyOrEvent = method.
AdaptedMethodSymbol
.AssociatedSymbol;