3 instantiations of MethodReturnValue
ILLink.RoslynAnalyzer (3)
TrimAnalysis\FlowAnnotations.cs (1)
215 => new MethodReturnValue (method.Method, isNewObj, dynamicallyAccessedMemberTypes);
TrimAnalysis\TrimAnalysisVisitor.cs (2)
125 return method.ReturnType.IsTypeInterestingForDataflow (isByRef: method.ReturnsByRef) ? new MethodReturnValue (method, isNewObj: false) : value; 348 var returnParameter = new MethodReturnValue (method, isNewObj: false);
22 references to MethodReturnValue
ILLink.RoslynAnalyzer (22)
src\tools\illink\src\ILLink.Shared\Annotations.cs (11)
91 (MethodParameterValue maybeThis, MethodReturnValue) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsMethodReturnType, 96 (MethodParameterValue, MethodReturnValue) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsMethodReturnType, 99 (MethodReturnValue, MethodParameterValue maybeThis) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsThisParameter, 100 (MethodReturnValue, MethodParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsParameter, 101 (MethodReturnValue, MethodReturnValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsMethodReturnType, 102 (MethodReturnValue, FieldValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsField, 103 (MethodReturnValue, GenericParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsGenericParameter, 106 (FieldValue, MethodReturnValue) => DiagnosticId.DynamicallyAccessedMembersMismatchFieldTargetsMethodReturnType, 111 (GenericParameterValue, MethodReturnValue) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsMethodReturnType, 116 (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 (2)
41 var annotatedMethodReturnValue = _annotations.GetMethodReturnValue (calledMethod, _isNewObj); 85 var annotatedMethodReturnValue = _annotations.GetMethodReturnValue (calledMethod, _isNewObj);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (1)
61 MethodReturnValue => DiagnosticId.MethodReturnValueCannotBeStaticallyDetermined,
TrimAnalysis\DiagnosticContext.cs (3)
57 MethodReturnValue mrv => mrv.MethodSymbol, 67 || (actualValue is not MethodReturnValue 69 || (actualValue is MethodReturnValue
TrimAnalysis\FlowAnnotations.cs (2)
214 internal partial MethodReturnValue GetMethodReturnValue (MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes) 217 internal partial MethodReturnValue GetMethodReturnValue (MethodProxy method, bool isNewObj)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
348 var returnParameter = new MethodReturnValue (method, isNewObj: false);