3 interfaces inheriting from IMethodReference
Microsoft.CodeAnalysis (3)
PEWriter\Members.cs (3)
512internal interface IMethodDefinition : ITypeDefinitionMember, IMethodReference 895internal interface ISpecializedMethodReference : IMethodReference 956internal interface IGenericMethodInstanceReference : IMethodReference
1 implementation of IMethodReference
Microsoft.CodeAnalysis (1)
CodeGen\ArrayMembers.cs (1)
287internal abstract class ArrayMethod : Cci.IMethodReference
80 references to IMethodReference
Microsoft.CodeAnalysis (80)
CodeGen\ILBuilderEmit.cs (1)
100var initializeArray = module.GetInitArrayHelper();
CodeGen\ITokenDeferral.cs (1)
24Cci.IMethodReference GetInitArrayHelper();
CodeGen\PermissionSetAttribute.cs (1)
57public Cci.IMethodReference Constructor(EmitContext context, bool reportDiagnostics)
CodeGen\ReferenceDependencyWalker.cs (3)
30var methodReference = reference as Cci.IMethodReference; 101private static void VisitMethodReference(Cci.IMethodReference methodReference, EmitContext context)
Emit\CommonPEModuleBuilder.cs (6)
34internal Cci.IMethodReference? PEEntryPoint; 35internal Cci.IMethodReference? DebugEntryPoint; 123internal abstract Cci.IMethodReference Translate(IMethodSymbolInternal symbol, DiagnosticBag diagnostics, bool needDeclaration); 723internal abstract Cci.IMethodReference Translate(TMethodSymbol symbol, DiagnosticBag diagnostics, bool needDeclaration); 735internal sealed override Cci.IMethodReference Translate(IMethodSymbolInternal symbol, DiagnosticBag diagnostics, bool needDeclaration) 1047public abstract Cci.IMethodReference GetInitArrayHelper();
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
63IMethodReference IGenericMethodParameterReference.DefiningMethod => ((IGenericMethodParameterReference)OldDefinition).DefiningMethod;
Emit\NoPia\CommonEmbeddedEvent.cs (4)
94Cci.IMethodReference Cci.IEventDefinition.Adder 99Cci.IMethodReference Cci.IEventDefinition.Remover 104Cci.IMethodReference Cci.IEventDefinition.Caller 109IEnumerable<Cci.IMethodReference> Cci.IEventDefinition.GetAccessors(EmitContext context)
Emit\NoPia\CommonEmbeddedMethod.cs (6)
261bool Cci.IMethodReference.AcceptsExtraArguments => AcceptsExtraArguments; 263ushort Cci.IMethodReference.GenericParameterCount => (ushort)_typeParameters.Length; 265Cci.IMethodDefinition Cci.IMethodReference.GetResolvedMethod(EmitContext context) 270ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters 279Cci.IGenericMethodInstanceReference Cci.IMethodReference.AsGenericMethodInstanceReference => null; 281Cci.ISpecializedMethodReference Cci.IMethodReference.AsSpecializedMethodReference => null;
Emit\NoPia\CommonEmbeddedProperty.cs (3)
78Cci.IMethodReference Cci.IPropertyDefinition.Getter 83Cci.IMethodReference Cci.IPropertyDefinition.Setter 88IEnumerable<Cci.IMethodReference> Cci.IPropertyDefinition.GetAccessors(EmitContext context)
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
234Cci.IMethodReference Cci.IGenericMethodParameterReference.DefiningMethod
Emit\NoPia\EmbeddedTypesManager.cs (2)
55where TMethodSymbol : class, TSymbol, Cci.IMethodReference 224internal Cci.IMethodReference EmbedMethodIfNeedTo(TMethodSymbol methodSymbol, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics)
Emit\NoPia\VtblGap.cs (6)
194bool Cci.IMethodReference.AcceptsExtraArguments 199ushort Cci.IMethodReference.GenericParameterCount 204Cci.IMethodDefinition Cci.IMethodReference.GetResolvedMethod(EmitContext context) 209ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters 214Cci.IGenericMethodInstanceReference Cci.IMethodReference.AsGenericMethodInstanceReference 219Cci.ISpecializedMethodReference Cci.IMethodReference.AsSpecializedMethodReference
IReferenceOrISignature.cs (1)
28public IReferenceOrISignature(IMethodReference item) => _item = item;
PEWriter\ICustomAttribute.cs (1)
24IMethodReference Constructor(EmitContext context, bool reportDiagnostics);
PEWriter\MemberRefComparer.cs (6)
48var xm = x as IMethodReference; 49var ym = y as IMethodReference; 69var methodRef = memberRef as IMethodReference;
PEWriter\Members.cs (9)
135IEnumerable<IMethodReference> GetAccessors(EmitContext context); 140IMethodReference Adder { get; } 145IMethodReference? Caller { get; } 160IMethodReference Remover { get; } 742IEnumerable<IMethodReference> GetAccessors(EmitContext context); 756IMethodReference? Getter { get; } 781IMethodReference? Setter { get; } 903IMethodReference UnspecializedVersion { get; } 967IMethodReference GetGenericMethod(EmitContext context);
PEWriter\MetadataVisitor.cs (4)
54IMethodReference constructor = customAttribute.Constructor(Context, reportDiagnostics: false); 334public void Visit(IEnumerable<IMethodReference> methodReferences) 336foreach (IMethodReference methodReference in methodReferences) 342public virtual void Visit(IMethodReference methodReference)
PEWriter\MetadataWriter.cs (15)
724private EntityHandle GetCustomAttributeTypeCodedIndex(IMethodReference methodReference) 940if (memberRef is IMethodReference methodRef) 964internal EntityHandle GetMethodDefinitionOrReferenceHandle(IMethodReference methodReference) 1093IMethodReference methodReference => this.GetMethodSignatureHandle(methodReference), 1098internal BlobHandle GetMethodSignatureHandle(IMethodReference methodReference) 1108internal byte[] GetMethodSignature(IMethodReference methodReference) 1115private BlobHandle GetMethodSignatureHandleAndBlob(IMethodReference methodReference, out ImmutableArray<byte> signatureBlob) 1163internal EntityHandle GetMethodHandle(IMethodReference methodReference) 1191Debug.Assert(!(signature is IMethodReference)); 1875IMethodReference entryPoint = module.PEEntryPoint; 1879IMethodReference debugEntryPoint = module.DebugEntryPoint; 2136IMethodReference constructor = customAttribute.Constructor(Context, reportDiagnostics: true); 2644foreach (IMethodReference accessorMethod in propertyDef.GetAccessors(Context)) 2670foreach (IMethodReference accessorMethod in eventDef.GetAccessors(Context)) 3112IMethodReference methodReference => GetMethodHandle(methodReference),
PEWriter\ReferenceIndexer.cs (3)
90var methodReference = reference as IMethodReference; 168protected override void ReserveMethodToken(IMethodReference methodReference)
PEWriter\ReferenceIndexerBase.cs (2)
137public override void Visit(IMethodReference methodReference) 182protected abstract void ReserveMethodToken(IMethodReference methodReference);
PEWriter\TypeReferenceIndexer.cs (1)
62protected override void ReserveMethodToken(IMethodReference methodReference)
PEWriter\Types.cs (3)
203IMethodReference DefiningMethod { get; } 357public readonly Cci.IMethodReference ImplementedMethod; 359public MethodImplementation(Cci.IMethodDefinition ImplementingMethod, Cci.IMethodReference ImplementedMethod)