1 write to AdaptedMethodSymbol
Microsoft.CodeAnalysis.CSharp (1)
Emitter\Model\MethodSymbolAdapter.cs (1)
704
AdaptedMethodSymbol
= underlyingMethodSymbol;
69 references to AdaptedMethodSymbol
Microsoft.CodeAnalysis.CSharp (69)
Emitter\Model\MethodSymbolAdapter.cs (66)
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;
90
needDeclaration:
AdaptedMethodSymbol
.IsDefinition);
97
if (!
AdaptedMethodSymbol
.IsDefinition)
99
if (
AdaptedMethodSymbol
.IsGenericMethod)
113
if (
AdaptedMethodSymbol
.ContainingModule == moduleBeingBuilt.SourceModule)
127
get { return
AdaptedMethodSymbol
.MetadataName; }
134
return
AdaptedMethodSymbol
.IsVararg;
142
return (ushort)
AdaptedMethodSymbol
.Arity;
150
return (ushort)
AdaptedMethodSymbol
.ParameterCount;
164
if (
AdaptedMethodSymbol
.IsDefinition && // can't be generic instantiation
165
AdaptedMethodSymbol
.ContainingModule == moduleBeingBuilt.SourceModule) // must be declared in the module we are building
167
Debug.Assert((object)
AdaptedMethodSymbol
.PartialDefinitionPart == null); // must be definition
186
return
AdaptedMethodSymbol
.CallingConvention;
195
if (
AdaptedMethodSymbol
.IsDefinition &&
AdaptedMethodSymbol
.ContainingModule == moduleBeingBuilt.SourceModule)
201
return moduleBeingBuilt.Translate(
AdaptedMethodSymbol
.Parameters);
207
Debug.Assert(
AdaptedMethodSymbol
.Parameters.All(p => p.IsDefinition));
210
return
AdaptedMethodSymbol
.Parameters.SelectAsArray<ParameterSymbol, Cci.IParameterDefinition>(p => p.GetCciAdapter());
220
return ImmutableArray<Cci.ICustomModifier>.CastUp(
AdaptedMethodSymbol
.ReturnTypeWithAnnotations.CustomModifiers);
228
return ImmutableArray<Cci.ICustomModifier>.CastUp(
AdaptedMethodSymbol
.RefCustomModifiers);
236
return
AdaptedMethodSymbol
.RefKind.IsManagedReference();
242
return ((PEModuleBuilder)context.Module).Translate(
AdaptedMethodSymbol
.ReturnType,
253
foreach (var arg in
AdaptedMethodSymbol
.TypeArgumentsWithAnnotations)
266
NamedTypeSymbol container =
AdaptedMethodSymbol
.ContainingType;
272
(MethodSymbol)
AdaptedMethodSymbol
.OriginalDefinition,
278
MethodSymbol methodSymbol =
AdaptedMethodSymbol
.ConstructedFrom;
288
return ((MethodSymbol)
AdaptedMethodSymbol
.OriginalDefinition).GetCciAdapter();
298
if (
AdaptedMethodSymbol
.OriginalDefinition is SynthesizedGlobalMethodSymbol synthesizedGlobalMethod)
303
return
AdaptedMethodSymbol
.ContainingType.GetCciAdapter();
312
return
AdaptedMethodSymbol
.MetadataVisibility;
328
return ((PEModuleBuilder)context.Module).GetMethodBody(
AdaptedMethodSymbol
);
337
foreach (var @param in
AdaptedMethodSymbol
.TypeParameters)
350
return
AdaptedMethodSymbol
.HasDeclarativeSecurity;
359
Debug.Assert(
AdaptedMethodSymbol
.HasDeclarativeSecurity);
360
return
AdaptedMethodSymbol
.GetSecurityInformation();
369
return
AdaptedMethodSymbol
.IsAbstract;
379
return
AdaptedMethodSymbol
.IsAccessCheckedOnOverride;
388
return
AdaptedMethodSymbol
.MethodKind == MethodKind.Constructor;
398
return
AdaptedMethodSymbol
.IsExternal;
407
return !
AdaptedMethodSymbol
.HidesBaseMethodsByName;
416
return
AdaptedMethodSymbol
.IsMetadataNewSlot();
425
return
AdaptedMethodSymbol
.GetDllImportData() != null;
434
return
AdaptedMethodSymbol
.GetDllImportData();
441
return
AdaptedMethodSymbol
.ImplementationAttributes;
449
return
AdaptedMethodSymbol
.HasRuntimeSpecialName;
458
return
AdaptedMethodSymbol
.IsMetadataFinal;
467
return
AdaptedMethodSymbol
.HasSpecialName;
476
return
AdaptedMethodSymbol
.IsStatic;
485
return
AdaptedMethodSymbol
.IsMetadataVirtual();
504
return
AdaptedMethodSymbol
.RequiresSecurityObject;
512
ImmutableArray<CSharpAttributeData> userDefined =
AdaptedMethodSymbol
.GetReturnTypeAttributes();
514
AdaptedMethodSymbol
.AddSynthesizedReturnTypeAttributes((PEModuleBuilder)context.Module, ref synthesized);
518
return
AdaptedMethodSymbol
.GetCustomAttributesToEmit(userDefined, synthesized, isReturnType: true, emittingAssemblyAttributesInNetModule: false);
526
return
AdaptedMethodSymbol
.ReturnValueIsMarshalledExplicitly;
535
return
AdaptedMethodSymbol
.ReturnValueMarshallingInformation;
544
return
AdaptedMethodSymbol
.ReturnValueMarshallingDescriptor;
552
return
AdaptedMethodSymbol
.ContainingNamespace.GetCciAdapter();
713
internal sealed override Symbol AdaptedSymbol =>
AdaptedMethodSymbol
;
Emitter\NoPia\EmbeddedTypesManager.cs (3)
474
Debug.Assert(!method.
AdaptedMethodSymbol
.IsDefaultValueTypeConstructor());
503
Error(diagnostics, ErrorCode.ERR_InteropMethodWithBody, syntaxNodeOpt, method.
AdaptedMethodSymbol
.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
509
Symbol propertyOrEvent = method.
AdaptedMethodSymbol
.AssociatedSymbol;