@@ -42,7 +42,7 @@ internal static class GetX
42
42
if ( invocation . ArgumentList != null &&
43
43
invocation . TryGetTarget ( KnownSymbol . Type . GetMethod , context . SemanticModel , context . CancellationToken , out var getX ) &&
44
44
TryGetTargetType ( invocation , context , out targetType , out _ ) &&
45
- IsKnownSignature ( getX , invocation ) &&
45
+ IsKnownSignature ( invocation , getX ) &&
46
46
TryGetName ( invocation , getX , context , out nameArg , out targetName ) &&
47
47
( TryGetFlags ( invocation , getX , context , out flagsArg , out flags ) ||
48
48
TryGetDefaultFlags ( KnownSymbol . Type . GetMethod , out flags ) ) )
@@ -67,7 +67,7 @@ internal static class GetX
67
67
if ( invocation . ArgumentList != null &&
68
68
invocation . TryGetTarget ( KnownSymbol . Type . GetMember , context . SemanticModel , context . CancellationToken , out var getX ) &&
69
69
TryGetTargetType ( invocation , context , out targetType , out _ ) &&
70
- IsKnownSignature ( getX , invocation ) &&
70
+ IsKnownSignature ( invocation , getX ) &&
71
71
TryGetName ( invocation , getX , context , out nameArg , out targetName ) &&
72
72
( TryGetFlags ( invocation , getX , context , out flagsArg , out flags ) ||
73
73
TryGetDefaultFlags ( KnownSymbol . Type . GetMember , out flags ) ) )
@@ -362,9 +362,9 @@ internal static bool TryGetDefaultFlags(QualifiedMethod getX, out BindingFlags d
362
362
/// <summary>
363
363
/// Defensive check to only handle known cases. Don't know how the binder works.
364
364
/// </summary>
365
- private static bool IsKnownSignature ( IMethodSymbol candidate , InvocationExpressionSyntax invocation )
365
+ private static bool IsKnownSignature ( InvocationExpressionSyntax invocation , IMethodSymbol getX )
366
366
{
367
- foreach ( var parameter in candidate . Parameters )
367
+ foreach ( var parameter in getX . Parameters )
368
368
{
369
369
if ( ! IsKnownArgument ( parameter ) )
370
370
{
0 commit comments