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