1 instantiation of MethodReturnValue
ILCompiler.Compiler (1)
Compiler\Dataflow\FlowAnnotations.cs (1)
974
=> new
MethodReturnValue
(method.Method, isNewObj, dynamicallyAccessedMemberTypes);
27 references to MethodReturnValue
ILCompiler.Compiler (27)
Compiler\Dataflow\FlowAnnotations.cs (2)
972
internal partial
MethodReturnValue
GetMethodReturnValue(MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
976
internal partial
MethodReturnValue
GetMethodReturnValue(MethodProxy method, bool isNewObj)
Compiler\Dataflow\MethodBodyScanner.cs (4)
810
var
methodReturnValue = GetReturnValue(methodIL);
882
protected abstract
MethodReturnValue
GetReturnValue(MethodIL method);
1047
case
MethodReturnValue
methodReturnValue:
1128
protected virtual void HandleReturnValue(MethodIL method, int offset,
MethodReturnValue
thisParameter, MultiValue valueToReturn)
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (3)
221
protected override
MethodReturnValue
GetReturnValue(MethodIL method) => _annotations.GetMethodReturnValue(method.OwningMethod, isNewObj: false);
257
protected override void HandleReturnValue(MethodIL methodIL, int offset,
MethodReturnValue
returnValue, MultiValue valueToStore)
344
var
annotatedMethodReturnValue = reflectionMarker.Annotations.GetMethodReturnValue(calledMethod, isNewObj);
src\runtime\src\tools\illink\src\ILLink.Shared\Annotations.cs (12)
96
NullableValueWithDynamicallyAccessedMembers { UnderlyingTypeValue: FieldValue or
MethodReturnValue
} nullable => nullable.UnderlyingTypeValue,
104
(MethodParameterValue maybeThis,
MethodReturnValue
) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsMethodReturnType,
109
(MethodParameterValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsMethodReturnType,
112
(
MethodReturnValue
, MethodParameterValue maybeThis) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsThisParameter,
113
(
MethodReturnValue
, MethodParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsParameter,
114
(
MethodReturnValue
,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsMethodReturnType,
115
(
MethodReturnValue
, FieldValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsField,
116
(
MethodReturnValue
, GenericParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsGenericParameter,
119
(FieldValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchFieldTargetsMethodReturnType,
124
(GenericParameterValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsMethodReturnType,
129
(NullableValueWithDynamicallyAccessedMembers,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsMethodReturnType,
src\runtime\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\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (3)
41
var
annotatedMethodReturnValue = _annotations.GetMethodReturnValue(calledMethod, _isNewObj);
94
var
annotatedMethodReturnValue = _annotations.GetMethodReturnValue(calledMethod, _isNewObj);
659
else if (value is
MethodReturnValue
returnValueType &&
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
90
MethodReturnValue
=> DiagnosticId.MethodReturnValueCannotBeStaticallyDetermined,