3 instantiations of MethodReturnValue
ILLink.RoslynAnalyzer (3)
TrimAnalysis\FlowAnnotations.cs (1)
235
=> new
MethodReturnValue
(method.Method, isNewObj, dynamicallyAccessedMemberTypes);
TrimAnalysis\TrimAnalysisVisitor.cs (2)
127
return method.ReturnType.IsTypeInterestingForDataflow(isByRef: method.ReturnsByRef) ? new
MethodReturnValue
(method, isNewObj: false) : value;
393
var returnParameter = new
MethodReturnValue
(method, isNewObj: false);
24 references to MethodReturnValue
ILLink.RoslynAnalyzer (24)
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,
TrimAnalysis\DiagnosticContext.cs (3)
58
MethodReturnValue
mrv => mrv.MethodSymbol,
68
|| (actualValue is not
MethodReturnValue
70
|| (actualValue is
MethodReturnValue
TrimAnalysis\FlowAnnotations.cs (2)
234
internal partial
MethodReturnValue
GetMethodReturnValue(MethodProxy method, bool isNewObj, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
237
internal partial
MethodReturnValue
GetMethodReturnValue(MethodProxy method, bool isNewObj)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
393
var
returnParameter = new MethodReturnValue(method, isNewObj: false);