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);
23 references to MethodReturnValue
ILLink.RoslynAnalyzer (23)
src\tools\illink\src\ILLink.Shared\Annotations.cs (12)
94
NullableValueWithDynamicallyAccessedMembers { UnderlyingTypeValue: FieldValue or
MethodReturnValue
} nullable => nullable.UnderlyingTypeValue,
100
(MethodParameterValue maybeThis,
MethodReturnValue
) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsMethodReturnType,
105
(MethodParameterValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsMethodReturnType,
108
(
MethodReturnValue
, MethodParameterValue maybeThis) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsThisParameter,
109
(
MethodReturnValue
, MethodParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsParameter,
110
(
MethodReturnValue
,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsMethodReturnType,
111
(
MethodReturnValue
, FieldValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsField,
112
(
MethodReturnValue
, GenericParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsGenericParameter,
115
(FieldValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchFieldTargetsMethodReturnType,
120
(GenericParameterValue,
MethodReturnValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsMethodReturnType,
125
(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);