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)
784
internal partial
MethodReturnValue
GetMethodReturnValue(MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
785
=>
MethodReturnValue
.Create(method, isNewObj, dynamicallyAccessedMemberTypes, _context);
788
internal partial
MethodReturnValue
GetMethodReturnValue(MethodProxy method, bool isNewObj)
Linker.Dataflow\MethodBodyScanner.cs (4)
701
var
methodReturnValue = GetReturnValue(methodBody.Method);
768
protected abstract
MethodReturnValue
GetReturnValue(MethodDefinition method);
934
case
MethodReturnValue
methodReturnValue:
1003
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);
113
protected override void HandleReturnValue(MethodDefinition method,
MethodReturnValue
returnValue, Instruction operation, MultiValue valueToStore)
188
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);
636
else if (value is
MethodReturnValue
returnValueType &&
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
83
MethodReturnValue
=> DiagnosticId.MethodReturnValueCannotBeStaticallyDetermined,