5 instantiations of MethodParameterValue
ILLink.RoslynAnalyzer (5)
TrimAnalysis\FlowAnnotations.cs (3)
267
=> new
MethodParameterValue
(new(method, parameterIndex), dynamicallyAccessedMemberTypes);
270
=> new
MethodParameterValue
(param, GetMethodParameterAnnotation(param));
273
=> new
MethodParameterValue
(param, dynamicallyAccessedMemberTypes);
TrimAnalysis\TrimAnalysisVisitor.cs (2)
155
return new
MethodParameterValue
(new ParameterProxy(new(method), (ParameterIndex)0));
259
return new
MethodParameterValue
(new ParameterProxy(parameter, parameter.ContainingSymbol as IMethodSymbol ?? (IMethodSymbol)OwningSymbol));
48 references to MethodParameterValue
ILLink.RoslynAnalyzer (48)
src\tools\illink\src\ILLink.Shared\Annotations.cs (22)
101
(
MethodParameterValue
maybeThisSource,
MethodParameterValue
maybeThisTarget) when maybeThisSource.IsThisParameter() && maybeThisTarget.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsThisParameter,
102
(
MethodParameterValue
maybeThis,
MethodParameterValue
) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsParameter,
103
(
MethodParameterValue
maybeThis, MethodReturnValue) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsMethodReturnType,
104
(
MethodParameterValue
maybeThis, FieldValue) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsField,
105
(
MethodParameterValue
maybeThis, GenericParameterValue) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsGenericParameter,
106
(
MethodParameterValue
,
MethodParameterValue
maybeThis) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsThisParameter,
107
(
MethodParameterValue
,
MethodParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsParameter,
108
(
MethodParameterValue
, MethodReturnValue) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsMethodReturnType,
109
(
MethodParameterValue
, FieldValue) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsField,
110
(
MethodParameterValue
, GenericParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsGenericParameter,
111
(MethodReturnValue,
MethodParameterValue
maybeThis) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsThisParameter,
112
(MethodReturnValue,
MethodParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsParameter,
116
(FieldValue,
MethodParameterValue
maybeThis) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchFieldTargetsThisParameter,
117
(FieldValue,
MethodParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchFieldTargetsParameter,
121
(GenericParameterValue,
MethodParameterValue
maybeThis) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsThisParameter,
122
(GenericParameterValue,
MethodParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsParameter,
126
(NullableValueWithDynamicallyAccessedMembers,
MethodParameterValue
maybeThis) when maybeThis.IsThisParameter() => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsThisParameter,
127
(NullableValueWithDynamicallyAccessedMembers,
MethodParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsParameter,
src\tools\illink\src\ILLink.Shared\TrimAnalysis\FlowAnnotations.cs (4)
30
internal partial
MethodParameterValue
GetMethodThisParameterValue(MethodProxy method, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes);
32
internal partial
MethodParameterValue
GetMethodThisParameterValue(MethodProxy method);
34
internal partial
MethodParameterValue
GetMethodParameterValue(ParameterProxy param, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes);
36
internal partial
MethodParameterValue
GetMethodParameterValue(ParameterProxy param);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (13)
247
var
targetValue = _annotations.GetMethodThisParameterValue(calledMethod, DynamicallyAccessedMemberTypes.Interfaces);
295
var
targetValue = _annotations.GetMethodThisParameterValue(calledMethod, DynamicallyAccessedMemberTypes.Interfaces);
439
var
targetValue = _annotations.GetMethodThisParameterValue(calledMethod, memberTypes);
482
var
targetValue = _annotations.GetMethodThisParameterValue(calledMethod, memberTypes);
564
var
targetValue = _annotations.GetMethodThisParameterValue(calledMethod, requiredMemberTypes);
606
var
targetValue = _annotations.GetMethodThisParameterValue(calledMethod, GetDynamicallyAccessedMemberTypesFromBindingFlagsForMethods(bindingFlags));
694
var
targetValue = _annotations.GetMethodThisParameterValue(calledMethod, GetDynamicallyAccessedMemberTypesFromBindingFlagsForNestedTypes(bindingFlags));
777
var
targetValue = _annotations.GetMethodParameterValue(new(calledMethod, (ParameterIndex)1), requiredMemberTypes);
840
var
targetValue = _annotations.GetMethodParameterValue(new(calledMethod, (ParameterIndex)0), DynamicallyAccessedMemberTypes.PublicParameterlessConstructor);
910
var
targetValue = _annotations.GetMethodParameterValue(new(calledMethod, (ParameterIndex)1), memberTypes);
956
var
targetValue = _annotations.GetMethodParameterValue(
1331
var
targetValue = _annotations.GetMethodThisParameterValue(calledMethod, requiredMemberTypes);
1455
var
targetValue = _annotations.GetMethodParameterValue(new(calledMethod, (ParameterIndex)0), requiredMemberTypes);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (2)
81
MethodParameterValue
maybeThis when maybeThis.IsThisParameter() => DiagnosticId.ImplicitThisCannotBeStaticallyDetermined,
82
MethodParameterValue
=> DiagnosticId.MethodParameterCannotBeStaticallyDetermined,
TrimAnalysis\DiagnosticContext.cs (2)
56
MethodParameterValue
maybeThisParameter when maybeThisParameter.Parameter.IsImplicitThis => maybeThisParameter.MethodSymbol,
57
MethodParameterValue
methodParameter => methodParameter.Parameter.ParameterSymbol!,
TrimAnalysis\FlowAnnotations.cs (5)
250
internal partial
MethodParameterValue
GetMethodThisParameterValue(MethodProxy method, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
257
internal partial
MethodParameterValue
GetMethodThisParameterValue(MethodProxy method)
266
internal
MethodParameterValue
GetMethodParameterValue(MethodProxy method, ParameterIndex parameterIndex, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
269
internal partial
MethodParameterValue
GetMethodParameterValue(ParameterProxy param)
272
internal partial
MethodParameterValue
GetMethodParameterValue(ParameterProxy param, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)