1 instantiation of MethodReturnValue
illink (1)
Linker.Dataflow\MethodReturnValue.cs (1)
27
return new
MethodReturnValue
(staticType, method, dynamicallyAccessedMemberTypes, resolver);
29 references to MethodReturnValue
illink (29)
Linker.Dataflow\FlowAnnotations.cs (3)
802
internal partial
MethodReturnValue
GetMethodReturnValue(MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
803
=>
MethodReturnValue
.Create(method, isNewObj, dynamicallyAccessedMemberTypes, _context);
806
internal partial
MethodReturnValue
GetMethodReturnValue(MethodProxy method, bool isNewObj)
Linker.Dataflow\MethodBodyScanner.cs (4)
710
var
methodReturnValue = GetReturnValue(methodIL);
777
protected abstract
MethodReturnValue
GetReturnValue(MethodIL method);
953
case
MethodReturnValue
methodReturnValue:
1022
protected virtual void HandleReturnValue(MethodIL 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)
116
protected override
MethodReturnValue
GetReturnValue(MethodIL methodIL) => _annotations.GetMethodReturnValue(methodIL.Method, isNewObj: false);
133
protected override void HandleReturnValue(MethodIL methodIL,
MethodReturnValue
returnValue, Instruction operation, MultiValue valueToStore)
235
var
annotatedMethodReturnValue = context.Annotations.FlowAnnotations.GetMethodReturnValue(calledMethodProxy.Value, isNewObj);
src\tools\illink\src\ILLink.Shared\Annotations.cs (12)
96
NullableValueWithDynamicallyAccessedMembers { UnderlyingTypeValue: FieldValue or
MethodReturnValue
} nullable => nullable.UnderlyingTypeValue,
103
(MethodParameterValue maybeThis,
MethodReturnValue
) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsMethodReturnType,
108
(MethodParameterValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsMethodReturnType,
111
(
MethodReturnValue
, MethodParameterValue maybeThis) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsThisParameter,
112
(
MethodReturnValue
, MethodParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsParameter,
113
(
MethodReturnValue
,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsMethodReturnType,
114
(
MethodReturnValue
, FieldValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsField,
115
(
MethodReturnValue
, GenericParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsGenericParameter,
118
(FieldValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchFieldTargetsMethodReturnType,
123
(GenericParameterValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsMethodReturnType,
128
(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 (3)
41
var
annotatedMethodReturnValue = _annotations.GetMethodReturnValue(calledMethod, _isNewObj);
94
var
annotatedMethodReturnValue = _annotations.GetMethodReturnValue(calledMethod, _isNewObj);
637
else if (value is
MethodReturnValue
returnValueType &&
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
83
MethodReturnValue
=> DiagnosticId.MethodReturnValueCannotBeStaticallyDetermined,