15 instantiations of ParameterProxy
illink (15)
Linker.Dataflow\FlowAnnotations.cs (3)
741
return new MethodParameterValue (method.Method.DeclaringType, new
ParameterProxy
(method, (ParameterIndex) 0), dynamicallyAccessedMemberTypes, _context);
749
ParameterProxy param =
new
(method, (ParameterIndex) 0);
751
return GetMethodParameterValue (new
ParameterProxy
(method, (ParameterIndex) 0), damt);
Linker.Dataflow\MethodBodyScanner.cs (1)
750
ParameterProxy param =
new
(thisMethod, paramNum);
Linker\MethodDefinitionExtensions.cs (1)
114
return
new
(method, index);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (8)
607
var targetValue = _annotations.GetMethodParameterValue (
new
(calledMethod, (ParameterIndex) 1), requiredMemberTypes);
656
var targetValue = _annotations.GetMethodParameterValue (
new
(calledMethod, (ParameterIndex) 0), DynamicallyAccessedMemberTypes.PublicParameterlessConstructor);
692
_annotations.GetMethodParameterValue (
new
(calledMethod, (ParameterIndex) 1), DynamicallyAccessedMemberTypes.None).GetDiagnosticArgumentsForAnnotationMismatch ().ToArray ());
714
var targetValue = _annotations.GetMethodParameterValue (
new
(calledMethod, (ParameterIndex) 1), memberTypes);
747
new
ParameterProxy
(calledMethod, (ParameterIndex) 0),
1131
var targetValue = _annotations.GetMethodParameterValue (
new
(calledMethod, (ParameterIndex) 0), requiredMemberTypes);
1370
_diagnosticContext.AddDiagnostic (DiagnosticId.UnrecognizedParameterInMethodCreateInstance, new
ParameterProxy
(calledMethod, (ParameterIndex) 1 + offset).GetDisplayName (), calledMethod.GetDisplayName ());
1374
_diagnosticContext.AddDiagnostic (DiagnosticId.UnrecognizedParameterInMethodCreateInstance, new
ParameterProxy
(calledMethod, (ParameterIndex) 0 + offset).GetDisplayName (), calledMethod.GetDisplayName ());
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\ParameterCollection.cs (2)
52
public ParameterProxy Current => new
ParameterProxy
(_method, (ParameterIndex) _current);
54
object IEnumerator.Current => new
ParameterProxy
(_method, (ParameterIndex) _current);
36 references to ParameterProxy
illink (36)
Linker.Dataflow\AttributeDataFlow.cs (1)
29
foreach (
var
parameter in method.GetMetadataParameters ()) {
Linker.Dataflow\FlowAnnotations.cs (5)
48
internal DynamicallyAccessedMemberTypes GetParameterAnnotation (
ParameterProxy
param)
251
foreach (
var
param in method.GetParameters ()) {
729
internal partial MethodParameterValue GetMethodParameterValue (
ParameterProxy
param, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
733
internal partial MethodParameterValue GetMethodParameterValue (
ParameterProxy
param)
749
ParameterProxy
param = new (method, (ParameterIndex) 0);
Linker.Dataflow\MethodBodyScanner.cs (4)
719
protected abstract SingleValue GetMethodParameterValue (
ParameterProxy
parameter);
728
ParameterProxy
param = thisMethod.GetParameter (paramNum);
750
ParameterProxy
param = new (thisMethod, paramNum);
1062
foreach (
var
parameter in calledMethodProxy.Value.GetParameters ()) {
Linker.Dataflow\MethodParameterValue.cs (1)
17
public MethodParameterValue (TypeReference? staticType,
ParameterProxy
param, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes, ITryResolveMetadata resolver)
Linker.Dataflow\MethodProxy.cs (1)
64
internal partial
ParameterProxy
GetParameter (ParameterIndex index) => Definition.GetParameter (index);
Linker.Dataflow\ParameterReferenceValue.cs (1)
8
internal sealed record ParameterReferenceValue (
ParameterProxy
Parameter)
Linker.Dataflow\ReflectionMethodBodyScanner.cs (2)
88
protected override ValueWithDynamicallyAccessedMembers GetMethodParameterValue (
ParameterProxy
parameter)
91
MethodParameterValue GetMethodParameterValue (
ParameterProxy
parameter, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
Linker.Steps\DescriptorMarker.cs (1)
214
foreach (
var
p in meth.GetMetadataParameters ()) {
Linker.Steps\LinkAttributesParser.cs (1)
187
foreach (
var
p in method.GetMetadataParameters ()) {
Linker.Steps\MarkStep.cs (1)
1034
foreach (
var
p in m.GetMetadataParameters ()) {
Linker\MethodBodyScanner.cs (2)
104
foreach (
var
param in methodIL.Method.GetParameters ())
127
foreach (
var
param in resolvedMethod.GetParameters ())
Linker\MethodDefinitionExtensions.cs (5)
106
/// Tries to get the <see cref="
ParameterProxy
"/> representing the parameter at index <paramref name="index"/> of method <paramref name="method"/>.
110
internal static
ParameterProxy
? TryGetParameter (this MethodDefinition method, ParameterIndex index)
118
/// Gets the <see cref="
ParameterProxy
"/> representing the parameter at index <paramref name="index"/> of method <paramref name="method"/>.
122
internal static
ParameterProxy
GetParameter (this MethodDefinition method, ParameterIndex index)
124
if (method.TryGetParameter (index) is not
ParameterProxy
param)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\FlowAnnotations.cs (2)
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 (1)
1202
foreach (
var
parameter in calledMethod.GetParameters ()) {
src\tools\illink\src\ILLink.Shared\TrimAnalysis\MethodParameterValue.cs (1)
18
public
ParameterProxy
Parameter { get; }
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\MethodProxy.cs (2)
34
/// Returns a List of <see cref="
ParameterProxy
"/> representing the parameters the method takes, including the implicit 'this' parameters.
43
internal partial
ParameterProxy
GetParameter (ParameterIndex index);
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\ParameterCollection.cs (5)
16
internal readonly struct ParameterProxyEnumerable : IEnumerable<
ParameterProxy
>
33
IEnumerator<
ParameterProxy
> IEnumerable<
ParameterProxy
>.GetEnumerator () => new ParameterEnumerator (_start, _end, _method);
37
public struct ParameterEnumerator : IEnumerator<
ParameterProxy
>
52
public
ParameterProxy
Current => new ParameterProxy (_method, (ParameterIndex) _current);