2 instantiations of MethodParameterValue
illink (2)
Linker.Dataflow\FlowAnnotations.cs (2)
730
=>
new
(param.ParameterType, param, dynamicallyAccessedMemberTypes, _context);
741
return new
MethodParameterValue
(method.Method.DeclaringType, new ParameterProxy (method, (ParameterIndex) 0), dynamicallyAccessedMemberTypes, _context);
51 references to MethodParameterValue
illink (51)
Linker.Dataflow\AttributeDataFlow.cs (1)
30
var
parameterValue = _context.Annotations.FlowAnnotations.GetMethodParameterValue (parameter);
Linker.Dataflow\FlowAnnotations.cs (4)
729
internal partial
MethodParameterValue
GetMethodParameterValue (ParameterProxy param, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
733
internal partial
MethodParameterValue
GetMethodParameterValue (ParameterProxy param)
737
internal partial
MethodParameterValue
GetMethodThisParameterValue (MethodProxy method, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
745
internal partial
MethodParameterValue
GetMethodThisParameterValue (MethodProxy method)
Linker.Dataflow\MethodBodyScanner.cs (4)
752
if (targetValue is
MethodParameterValue
targetParameterValue)
873
when GetMethodParameterValue (parameterReference.Parameter) is
MethodParameterValue
parameterValue:
935
protected virtual void HandleStoreParameter (MethodDefinition method,
MethodParameterValue
parameter, Instruction operation, MultiValue valueToStore, int? parameterIndex)
1065
var
newByRefValue = _context.Annotations.FlowAnnotations.GetMethodParameterValue (parameter);
Linker.Dataflow\ReflectionMethodBodyScanner.cs (2)
91
MethodParameterValue
GetMethodParameterValue (ParameterProxy parameter, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
109
protected override void HandleStoreParameter (MethodDefinition method,
MethodParameterValue
parameter, Instruction operation, MultiValue valueToStore, int? parameterIndex)
src\tools\illink\src\ILLink.Shared\Annotations.cs (22)
89
(
MethodParameterValue
maybeThisSource,
MethodParameterValue
maybeThisTarget) when maybeThisSource.IsThisParameter () && maybeThisTarget.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsThisParameter,
90
(
MethodParameterValue
maybeThis,
MethodParameterValue
) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsParameter,
91
(
MethodParameterValue
maybeThis, MethodReturnValue) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsMethodReturnType,
92
(
MethodParameterValue
maybeThis, FieldValue) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsField,
93
(
MethodParameterValue
maybeThis, GenericParameterValue) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchThisParameterTargetsGenericParameter,
94
(
MethodParameterValue
,
MethodParameterValue
maybeThis) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsThisParameter,
95
(
MethodParameterValue
,
MethodParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsParameter,
96
(
MethodParameterValue
, MethodReturnValue) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsMethodReturnType,
97
(
MethodParameterValue
, FieldValue) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsField,
98
(
MethodParameterValue
, GenericParameterValue) => DiagnosticId.DynamicallyAccessedMembersMismatchParameterTargetsGenericParameter,
99
(MethodReturnValue,
MethodParameterValue
maybeThis) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsThisParameter,
100
(MethodReturnValue,
MethodParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchMethodReturnTypeTargetsParameter,
104
(FieldValue,
MethodParameterValue
maybeThis) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchFieldTargetsThisParameter,
105
(FieldValue,
MethodParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchFieldTargetsParameter,
109
(GenericParameterValue,
MethodParameterValue
maybeThis) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsThisParameter,
110
(GenericParameterValue,
MethodParameterValue
) => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsParameter,
114
(NullableValueWithDynamicallyAccessedMembers,
MethodParameterValue
maybeThis) when maybeThis.IsThisParameter () => DiagnosticId.DynamicallyAccessedMembersMismatchTypeArgumentTargetsThisParameter,
115
(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 (12)
223
var
targetValue = _annotations.GetMethodThisParameterValue (calledMethod, DynamicallyAccessedMemberTypes.Interfaces);
352
var
targetValue = _annotations.GetMethodThisParameterValue (calledMethod, memberTypes);
392
var
targetValue = _annotations.GetMethodThisParameterValue (calledMethod, memberTypes);
456
var
targetValue = _annotations.GetMethodThisParameterValue (calledMethod, requiredMemberTypes);
494
var
targetValue = _annotations.GetMethodThisParameterValue (calledMethod, GetDynamicallyAccessedMemberTypesFromBindingFlagsForMethods (bindingFlags));
549
var
targetValue = _annotations.GetMethodThisParameterValue (calledMethod, GetDynamicallyAccessedMemberTypesFromBindingFlagsForNestedTypes (bindingFlags));
616
var
targetValue = _annotations.GetMethodParameterValue (new (calledMethod, (ParameterIndex) 1), requiredMemberTypes);
665
var
targetValue = _annotations.GetMethodParameterValue (new (calledMethod, (ParameterIndex) 0), DynamicallyAccessedMemberTypes.PublicParameterlessConstructor);
723
var
targetValue = _annotations.GetMethodParameterValue (new (calledMethod, (ParameterIndex) 1), memberTypes);
755
var
targetValue = _annotations.GetMethodParameterValue (
1064
var
targetValue = _annotations.GetMethodThisParameterValue (calledMethod, requiredMemberTypes);
1164
var
targetValue = _annotations.GetMethodParameterValue (new (calledMethod, (ParameterIndex) 0), requiredMemberTypes);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\RequireDynamicallyAccessedMembersAction.cs (2)
59
MethodParameterValue
maybeThis when maybeThis.IsThisParameter () => DiagnosticId.ImplicitThisCannotBeStaticallyDetermined,
60
MethodParameterValue
=> DiagnosticId.MethodParameterCannotBeStaticallyDetermined,