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)
972internal partial MethodReturnValue GetMethodReturnValue(MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes) 976internal partial MethodReturnValue GetMethodReturnValue(MethodProxy method, bool isNewObj)
Compiler\Dataflow\MethodBodyScanner.cs (4)
810var methodReturnValue = GetReturnValue(methodIL); 882protected abstract MethodReturnValue GetReturnValue(MethodIL method); 1047case MethodReturnValue methodReturnValue: 1128protected virtual void HandleReturnValue(MethodIL method, int offset, MethodReturnValue thisParameter, MultiValue valueToReturn)
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (3)
221protected override MethodReturnValue GetReturnValue(MethodIL method) => _annotations.GetMethodReturnValue(method.OwningMethod, isNewObj: false); 257protected override void HandleReturnValue(MethodIL methodIL, int offset, MethodReturnValue returnValue, MultiValue valueToStore) 344var annotatedMethodReturnValue = reflectionMarker.Annotations.GetMethodReturnValue(calledMethod, isNewObj);
src\runtime\src\tools\illink\src\ILLink.Shared\Annotations.cs (12)
96NullableValueWithDynamicallyAccessedMembers { 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)
22internal partial MethodReturnValue GetMethodReturnValue(MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes); 24internal partial MethodReturnValue GetMethodReturnValue(MethodProxy method, bool isNewObj);
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (3)
41var annotatedMethodReturnValue = _annotations.GetMethodReturnValue(calledMethod, _isNewObj); 94var annotatedMethodReturnValue = _annotations.GetMethodReturnValue(calledMethod, _isNewObj); 659else if (value is MethodReturnValue returnValueType &&
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
90MethodReturnValue => DiagnosticId.MethodReturnValueCannotBeStaticallyDetermined,