2 instantiations of MethodProxy
illink (2)
Linker.Dataflow\MethodProxy.cs (2)
22
methodProxy = new
MethodProxy
(method, methodDef);
32
public static implicit operator MethodProxy(MethodDefinition method) =>
new
(method, method);
50 references to MethodProxy
illink (50)
Linker.Dataflow\FlowAnnotations.cs (5)
827
internal partial bool MethodRequiresDataFlowAnalysis(
MethodProxy
method)
831
internal partial MethodReturnValue GetMethodReturnValue(
MethodProxy
method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
835
internal partial MethodReturnValue GetMethodReturnValue(
MethodProxy
method, bool isNewObj)
855
internal partial MethodParameterValue GetMethodThisParameterValue(
MethodProxy
method, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
863
internal partial MethodParameterValue GetMethodThisParameterValue(
MethodProxy
method)
Linker.Dataflow\HandleCallAction.cs (7)
48
MethodProxy
calledMethod,
240
private partial bool MethodIsTypeConstructor(
MethodProxy
method)
258
if (
MethodProxy
.TryCreate(method, _context, out
MethodProxy
? methodProxy))
281
private partial bool TryResolveTypeNameForCreateInstanceAndMark(in
MethodProxy
calledMethod, string assemblyName, string typeName, out TypeProxy resolvedType)
325
private partial void MarkMethod(
MethodProxy
method)
331
private partial bool MarkAssociatedProperty(
MethodProxy
method)
Linker.Dataflow\MethodBodyScanner.cs (2)
1156
if (
MethodProxy
.TryCreate(calledMethod, _context, out
MethodProxy
? calledMethodProxy))
Linker.Dataflow\MethodProxy.cs (5)
12
internal readonly partial struct MethodProxy : IEquatable<
MethodProxy
>
14
public static bool TryCreate(MethodReference method, ITryResolveMetadata resolver, [NotNullWhen(true)] out
MethodProxy
? methodProxy)
32
public static implicit operator
MethodProxy
(MethodDefinition method) => new(method, method);
95
public bool Equals(
MethodProxy
other) => Method.Equals(other.Method);
97
public override bool Equals(object? obj) => obj is
MethodProxy
other && Equals(other);
Linker.Dataflow\MethodReturnValue.cs (2)
22
public static MethodReturnValue Create(
MethodProxy
method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes, ITryResolveMetadata resolver)
30
private MethodReturnValue(TypeReference? staticType,
MethodProxy
method, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes, ITryResolveMetadata resolver)
Linker.Dataflow\ReflectionMethodBodyScanner.cs (2)
224
if (!
MethodProxy
.TryCreate(calledMethod, context, out
MethodProxy
? calledMethodProxy))
src\tools\illink\src\ILLink.Shared\TrimAnalysis\FlowAnnotations.cs (5)
20
internal partial bool MethodRequiresDataFlowAnalysis(
MethodProxy
method);
22
internal partial MethodReturnValue GetMethodReturnValue(
MethodProxy
method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes);
24
internal partial MethodReturnValue GetMethodReturnValue(
MethodProxy
method, bool isNewObj);
30
internal partial MethodParameterValue GetMethodThisParameterValue(
MethodProxy
method, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes);
32
internal partial MethodParameterValue GetMethodThisParameterValue(
MethodProxy
method);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (10)
31
public bool Invoke(
MethodProxy
calledMethod, MultiValue instanceValue, IReadOnlyList<MultiValue> argumentValues, IntrinsicId intrinsicId, out MultiValue methodReturnValue)
78
MethodProxy
calledMethod,
85
MethodProxy
calledMethod,
1646
MethodProxy
genericMethod,
1648
MethodProxy
reflectionMethod)
1675
private void ProcessCreateInstanceByName(
MethodProxy
calledMethod, IReadOnlyList<MultiValue> argumentValues)
1805
private partial bool MethodIsTypeConstructor(
MethodProxy
method);
1813
private partial bool TryResolveTypeNameForCreateInstanceAndMark(in
MethodProxy
calledMethod, string assemblyName, string typeName, out TypeProxy resolvedType);
1827
private partial void MarkMethod(
MethodProxy
method);
1831
private partial bool MarkAssociatedProperty(
MethodProxy
method);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\Intrinsics.cs (1)
13
public static IntrinsicId GetIntrinsicIdForMethod(
MethodProxy
calledMethod)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\MethodReturnValue.cs (1)
15
public
MethodProxy
Method { get; }
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RuntimeMethodHandleValue.cs (2)
17
public RuntimeMethodHandleValue(in
MethodProxy
representedMethod)
22
public readonly
MethodProxy
RepresentedMethod;
src\tools\illink\src\ILLink.Shared\TrimAnalysis\SystemReflectionMethodBaseValue.cs (2)
17
public SystemReflectionMethodBaseValue(
MethodProxy
representedMethod) => RepresentedMethod = representedMethod;
19
public readonly
MethodProxy
RepresentedMethod;
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\ParameterCollection.cs (4)
22
private readonly
MethodProxy
_method;
24
public ParameterProxyEnumerable(int start, int end,
MethodProxy
method)
42
private readonly
MethodProxy
_method;
44
public ParameterEnumerator(int start, int end,
MethodProxy
method)
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\ParameterProxy.cs (2)
14
public ParameterProxy(
MethodProxy
method, ParameterIndex index)
22
public
MethodProxy
Method { get; }