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