20 instantiations of ParameterProxy
ILLink.RoslynAnalyzer (20)
DynamicallyAccessedMembersAnalyzer.cs (2)
250
var overrideMethodThisAnnotation = FlowAnnotations.GetMethodParameterAnnotation (new
ParameterProxy
(new (overrideMethod), (ParameterIndex) 0));
251
var baseMethodThisAnnotation = FlowAnnotations.GetMethodParameterAnnotation (new
ParameterProxy
(new (baseMethod), (ParameterIndex) 0));
IMethodSymbolExtensions.cs (1)
53
return new
ParameterProxy
(new (method), index);
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (8)
616
var targetValue = _annotations.GetMethodParameterValue (
new
(calledMethod, (ParameterIndex) 1), requiredMemberTypes);
665
var targetValue = _annotations.GetMethodParameterValue (
new
(calledMethod, (ParameterIndex) 0), DynamicallyAccessedMemberTypes.PublicParameterlessConstructor);
701
_annotations.GetMethodParameterValue (
new
(calledMethod, (ParameterIndex) 1), DynamicallyAccessedMemberTypes.None).GetDiagnosticArgumentsForAnnotationMismatch ().ToArray ());
723
var targetValue = _annotations.GetMethodParameterValue (
new
(calledMethod, (ParameterIndex) 1), memberTypes);
756
new
ParameterProxy
(calledMethod, (ParameterIndex) 0),
1164
var targetValue = _annotations.GetMethodParameterValue (
new
(calledMethod, (ParameterIndex) 0), requiredMemberTypes);
1403
_diagnosticContext.AddDiagnostic (DiagnosticId.UnrecognizedParameterInMethodCreateInstance, new
ParameterProxy
(calledMethod, (ParameterIndex) 1 + offset).GetDisplayName (), calledMethod.GetDisplayName ());
1407
_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);
TrimAnalysis\FlowAnnotations.cs (4)
230
return GetMethodParameterValue (new
ParameterProxy
(method, (ParameterIndex) 0), dynamicallyAccessedMemberTypes);
237
ParameterProxy param =
new
(method, (ParameterIndex) 0);
239
return GetMethodParameterValue (new
ParameterProxy
(method, (ParameterIndex) 0), damt);
243
=> new MethodParameterValue (
new
(method, parameterIndex), dynamicallyAccessedMemberTypes);
TrimAnalysis\MethodParameterValue.cs (2)
13
: this (new
ParameterProxy
(parameterSymbol)) { }
15
: this (
new
(new (methodSymbol), parameterIndex), dynamicallyAccessedMemberTypes) { }
TrimAnalysis\TrimAnalysisVisitor.cs (1)
150
return new MethodParameterValue (method, (ParameterIndex) 0, FlowAnnotations.GetMethodParameterAnnotation (new
ParameterProxy
(new (method), (ParameterIndex) 0)));
27 references to ParameterProxy
ILLink.RoslynAnalyzer (27)
DataFlow\LocalDataFlowVisitor.cs (1)
751
foreach (
var
parameterProxy in calledMethod.GetParameters ()) {
DynamicallyAccessedMembersAnalyzer.cs (2)
200
foreach (
var
overrideParam in overrideMethod.GetMetadataParameters ()) {
201
var
baseParam = baseMethod.GetParameter (overrideParam.Index);
IMethodSymbolExtensions.cs (3)
38
public static
ParameterProxy
GetParameter (this IMethodSymbol method, ParameterIndex index)
40
if (method.TryGetParameter (index) is not
ParameterProxy
param)
49
public static
ParameterProxy
? TryGetParameter (this IMethodSymbol method, ParameterIndex index)
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)
1235
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);
TrimAnalysis\FlowAnnotations.cs (6)
30
foreach (
var
param in method.GetParameters ()) {
97
foreach (
var
param in method.GetParameters ()) {
137
internal static DynamicallyAccessedMemberTypes GetMethodParameterAnnotation (
ParameterProxy
param)
237
ParameterProxy
param = new (method, (ParameterIndex) 0);
245
internal partial MethodParameterValue GetMethodParameterValue (
ParameterProxy
param)
248
internal partial MethodParameterValue GetMethodParameterValue (
ParameterProxy
param, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
TrimAnalysis\MethodParameterValue.cs (2)
17
public MethodParameterValue (
ParameterProxy
parameter)
20
public MethodParameterValue (
ParameterProxy
parameter, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes)
TrimAnalysis\MethodProxy.cs (1)
30
internal partial
ParameterProxy
GetParameter (ParameterIndex index) => Method.GetParameter (index);
TrimAnalysis\ReflectionAccessAnalyzer.cs (1)
157
foreach (
var
parameter in methodSymbol.GetParameters ()) {