3 instantiations of MethodReturnValue
ILLink.RoslynAnalyzer (3)
TrimAnalysis\FlowAnnotations.cs (1)
235=> new MethodReturnValue(method.Method, isNewObj, dynamicallyAccessedMemberTypes);
TrimAnalysis\TrimAnalysisVisitor.cs (2)
127return method.ReturnType.IsTypeInterestingForDataflow(isByRef: method.ReturnsByRef) ? new MethodReturnValue(method, isNewObj: false) : value; 393var returnParameter = new MethodReturnValue(method, isNewObj: false);
24 references to MethodReturnValue
ILLink.RoslynAnalyzer (24)
src\tools\illink\src\ILLink.Shared\Annotations.cs (12)
96NullableValueWithDynamicallyAccessedMembers { 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)
22internal partial MethodReturnValue GetMethodReturnValue(MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes); 24internal partial MethodReturnValue GetMethodReturnValue(MethodProxy method, bool isNewObj);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (3)
41var annotatedMethodReturnValue = _annotations.GetMethodReturnValue(calledMethod, _isNewObj); 94var annotatedMethodReturnValue = _annotations.GetMethodReturnValue(calledMethod, _isNewObj); 636else if (value is MethodReturnValue returnValueType &&
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
83MethodReturnValue => DiagnosticId.MethodReturnValueCannotBeStaticallyDetermined,
TrimAnalysis\DiagnosticContext.cs (3)
58MethodReturnValue mrv => mrv.MethodSymbol, 68|| (actualValue is not MethodReturnValue 70|| (actualValue is MethodReturnValue
TrimAnalysis\FlowAnnotations.cs (2)
234internal partial MethodReturnValue GetMethodReturnValue(MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes) 237internal partial MethodReturnValue GetMethodReturnValue(MethodProxy method, bool isNewObj)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
393var returnParameter = new MethodReturnValue(method, isNewObj: false);