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