1 write to AdaptedMethodSymbol
Microsoft.CodeAnalysis.CSharp (1)
Emitter\Model\MethodSymbolAdapter.cs (1)
689
AdaptedMethodSymbol
= underlyingMethodSymbol;
93 references to AdaptedMethodSymbol
Microsoft.CodeAnalysis.CSharp (92)
Emitter\Model\MethodSymbolAdapter.cs (67)
38
if (!
AdaptedMethodSymbol
.IsDefinition &&
39
AdaptedMethodSymbol
.IsGenericMethod)
54
if (!
AdaptedMethodSymbol
.IsDefinition &&
55
(!
AdaptedMethodSymbol
.IsGenericMethod || PEModuleBuilder.IsGenericType(
AdaptedMethodSymbol
.ContainingType)))
57
Debug.Assert((object)
AdaptedMethodSymbol
.ContainingType != null &&
58
PEModuleBuilder.IsGenericType(
AdaptedMethodSymbol
.ContainingType));
75
var synthesizedGlobalMethod =
AdaptedMethodSymbol
as SynthesizedGlobalMethodSymbol;
81
NamedTypeSymbol containingType =
AdaptedMethodSymbol
.ContainingType;
87
needDeclaration:
AdaptedMethodSymbol
.IsDefinition);
94
if (!
AdaptedMethodSymbol
.IsDefinition)
96
if (
AdaptedMethodSymbol
.IsGenericMethod)
110
if (
AdaptedMethodSymbol
.ContainingModule == moduleBeingBuilt.SourceModule)
124
get { return
AdaptedMethodSymbol
.MetadataName; }
131
return
AdaptedMethodSymbol
.IsVararg;
139
return (ushort)
AdaptedMethodSymbol
.Arity;
147
return
AdaptedMethodSymbol
.IsGenericMethod;
155
return (ushort)
AdaptedMethodSymbol
.ParameterCount;
169
if (
AdaptedMethodSymbol
.IsDefinition && // can't be generic instantiation
170
AdaptedMethodSymbol
.ContainingModule == moduleBeingBuilt.SourceModule) // must be declared in the module we are building
172
Debug.Assert((object)
AdaptedMethodSymbol
.PartialDefinitionPart == null); // must be definition
191
return
AdaptedMethodSymbol
.CallingConvention;
200
if (
AdaptedMethodSymbol
.IsDefinition &&
AdaptedMethodSymbol
.ContainingModule == moduleBeingBuilt.SourceModule)
206
return moduleBeingBuilt.Translate(
AdaptedMethodSymbol
.Parameters);
212
Debug.Assert(
AdaptedMethodSymbol
.Parameters.All(p => p.IsDefinition));
215
return
AdaptedMethodSymbol
.Parameters.SelectAsArray<ParameterSymbol, Cci.IParameterDefinition>(p => p.GetCciAdapter());
225
return ImmutableArray<Cci.ICustomModifier>.CastUp(
AdaptedMethodSymbol
.ReturnTypeWithAnnotations.CustomModifiers);
233
return ImmutableArray<Cci.ICustomModifier>.CastUp(
AdaptedMethodSymbol
.RefCustomModifiers);
241
return
AdaptedMethodSymbol
.RefKind.IsManagedReference();
247
return ((PEModuleBuilder)context.Module).Translate(
AdaptedMethodSymbol
.ReturnType,
258
foreach (var arg in
AdaptedMethodSymbol
.TypeArgumentsWithAnnotations)
271
NamedTypeSymbol container =
AdaptedMethodSymbol
.ContainingType;
277
(MethodSymbol)
AdaptedMethodSymbol
.OriginalDefinition,
283
MethodSymbol methodSymbol =
AdaptedMethodSymbol
.ConstructedFrom;
293
return ((MethodSymbol)
AdaptedMethodSymbol
.OriginalDefinition).GetCciAdapter();
303
var synthesizedGlobalMethod =
AdaptedMethodSymbol
as SynthesizedGlobalMethodSymbol;
309
return
AdaptedMethodSymbol
.ContainingType.GetCciAdapter();
318
return PEModuleBuilder.MemberVisibility(
AdaptedMethodSymbol
);
325
return ((PEModuleBuilder)context.Module).GetMethodBody(
AdaptedMethodSymbol
);
334
foreach (var @param in
AdaptedMethodSymbol
.TypeParameters)
347
return
AdaptedMethodSymbol
.HasDeclarativeSecurity;
356
Debug.Assert(
AdaptedMethodSymbol
.HasDeclarativeSecurity);
357
return
AdaptedMethodSymbol
.GetSecurityInformation();
366
return
AdaptedMethodSymbol
.IsAbstract;
376
return
AdaptedMethodSymbol
.IsAccessCheckedOnOverride;
385
return
AdaptedMethodSymbol
.MethodKind == MethodKind.Constructor;
395
return
AdaptedMethodSymbol
.IsExternal;
404
return !
AdaptedMethodSymbol
.HidesBaseMethodsByName;
413
return
AdaptedMethodSymbol
.IsMetadataNewSlot();
422
return
AdaptedMethodSymbol
.GetDllImportData() != null;
431
return
AdaptedMethodSymbol
.GetDllImportData();
438
return
AdaptedMethodSymbol
.ImplementationAttributes;
446
return
AdaptedMethodSymbol
.HasRuntimeSpecialName;
455
return
AdaptedMethodSymbol
.IsMetadataFinal;
464
return
AdaptedMethodSymbol
.HasSpecialName;
473
return
AdaptedMethodSymbol
.IsStatic;
482
return
AdaptedMethodSymbol
.IsMetadataVirtual();
501
return
AdaptedMethodSymbol
.RequiresSecurityObject;
509
ImmutableArray<CSharpAttributeData> userDefined =
AdaptedMethodSymbol
.GetReturnTypeAttributes();
511
AdaptedMethodSymbol
.AddSynthesizedReturnTypeAttributes((PEModuleBuilder)context.Module, ref synthesized);
515
return
AdaptedMethodSymbol
.GetCustomAttributesToEmit(userDefined, synthesized, isReturnType: true, emittingAssemblyAttributesInNetModule: false);
523
return
AdaptedMethodSymbol
.ReturnValueIsMarshalledExplicitly;
532
return
AdaptedMethodSymbol
.ReturnValueMarshallingInformation;
541
return
AdaptedMethodSymbol
.ReturnValueMarshallingDescriptor;
549
return
AdaptedMethodSymbol
.ContainingNamespace.GetCciAdapter();
698
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;
179
return PEModuleBuilder.MemberVisibility(UnderlyingMethod.
AdaptedMethodSymbol
);
185
get { return UnderlyingMethod.
AdaptedMethodSymbol
.MetadataName; }
192
return UnderlyingMethod.
AdaptedMethodSymbol
.IsVararg;
208
return UnderlyingMethod.
AdaptedMethodSymbol
.ContainingNamespace.GetCciAdapter();
Emitter\NoPia\EmbeddedTypesManager.cs (3)
458
Debug.Assert(!method.
AdaptedMethodSymbol
.IsDefaultValueTypeConstructor());
487
Error(diagnostics, ErrorCode.ERR_InteropMethodWithBody, syntaxNodeOpt, method.
AdaptedMethodSymbol
.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
493
Symbol propertyOrEvent = method.
AdaptedMethodSymbol
.AssociatedSymbol;
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\PlaceholderMethodSymbol.cs (1)
317
return ImmutableArray<Cci.ICustomModifier>.CastUp(
AdaptedMethodSymbol
.RefCustomModifiers);