1 instantiation of MethodReturnValue
illink (1)
Linker.Dataflow\MethodReturnValue.cs (1)
27
return new
MethodReturnValue
(staticType, method.Definition, dynamicallyAccessedMemberTypes, resolver);
27 references to MethodReturnValue
illink (27)
Linker.Dataflow\FlowAnnotations.cs (3)
713
internal partial
MethodReturnValue
GetMethodReturnValue (MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
714
=>
MethodReturnValue
.Create (method, isNewObj, dynamicallyAccessedMemberTypes, _context);
717
internal partial
MethodReturnValue
GetMethodReturnValue (MethodProxy method, bool isNewObj)
Linker.Dataflow\MethodBodyScanner.cs (4)
659
var
methodReturnValue = GetReturnValue (methodBody.Method);
721
protected abstract
MethodReturnValue
GetReturnValue (MethodDefinition method);
876
case
MethodReturnValue
methodReturnValue:
939
protected virtual void HandleReturnValue (MethodDefinition method,
MethodReturnValue
thisParameter, Instruction operation, MultiValue valueToReturn)
Linker.Dataflow\MethodReturnValue.cs (1)
22
public static
MethodReturnValue
Create (MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes, ITryResolveMetadata resolver)
Linker.Dataflow\ReflectionMethodBodyScanner.cs (3)
96
protected override
MethodReturnValue
GetReturnValue (MethodDefinition method) => _annotations.GetMethodReturnValue (method, isNewObj: false);
112
protected override void HandleReturnValue (MethodDefinition method,
MethodReturnValue
returnValue, Instruction operation, MultiValue valueToStore)
181
var
annotatedMethodReturnValue = context.Annotations.FlowAnnotations.GetMethodReturnValue (calledMethodProxy.Value, isNewObj);
src\tools\illink\src\ILLink.Shared\Annotations.cs (11)
91
(MethodParameterValue maybeThis,
MethodReturnValue
) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsMethodReturnType,
96
(MethodParameterValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsMethodReturnType,
99
(
MethodReturnValue
, MethodParameterValue maybeThis) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsThisParameter,
100
(
MethodReturnValue
, MethodParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsParameter,
101
(
MethodReturnValue
,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsMethodReturnType,
102
(
MethodReturnValue
, FieldValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsField,
103
(
MethodReturnValue
, GenericParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsGenericParameter,
106
(FieldValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchFieldTargetsMethodReturnType,
111
(GenericParameterValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsMethodReturnType,
116
(NullableValueWithDynamicallyAccessedMembers,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsMethodReturnType,
src\tools\illink\src\ILLink.Shared\TrimAnalysis\FlowAnnotations.cs (2)
22
internal partial
MethodReturnValue
GetMethodReturnValue (MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes);
24
internal partial
MethodReturnValue
GetMethodReturnValue (MethodProxy method, bool isNewObj);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (2)
41
var
annotatedMethodReturnValue = _annotations.GetMethodReturnValue (calledMethod, _isNewObj);
85
var
annotatedMethodReturnValue = _annotations.GetMethodReturnValue (calledMethod, _isNewObj);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
61
MethodReturnValue
=> DiagnosticId.MethodReturnValueCannotBeStaticallyDetermined,