2 writes to Receiver
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\OverloadResolution\MethodGroup.cs (2)
78
this.
Receiver
= receiverOpt;
85
this.
Receiver
= null;
17 references to Receiver
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Expressions.cs (4)
8405
if (!InParameterDefaultValue && !InAttributeArgument && methodGroup.
Receiver
.IsExpressionOfComImportType())
8414
receiver: methodGroup.
Receiver
,
10438
if (!InParameterDefaultValue && !InAttributeArgument && methodGroup.
Receiver
.IsExpressionOfComImportType())
10446
methodGroup.
Receiver
,
Binder\Binder_Invocation.cs (6)
638
receiver: methodGroup.
Receiver
,
1173
receiver: methodGroup.
Receiver
, invokedExpression: expression, arguments: analyzedArguments, memberGroup: methodGroup.Methods.ToImmutable(),
1177
return CreateBadCall(node, methodGroup.Name, invokedAsExtensionMethod && analyzedArguments.Arguments.Count > 0 && (object)methodGroup.
Receiver
== (object)analyzedArguments.Arguments[0] ? null : methodGroup.
Receiver
,
1195
var receiver = ReplaceTypeOrValueReceiver(methodGroup.
Receiver
, !method.RequiresInstanceReceiver && !invokedAsExtensionMethod, diagnostics);
1218
if ((object)receiver != methodGroup.
Receiver
)
Binder\Semantics\Conversions\Conversions.cs (3)
361
receiver: resolution.MethodGroup.
Receiver
, invokedExpression: expr.Syntax, arguments: resolution.AnalyzedArguments,
388
receiver: methodGroup.
Receiver
,
458
if (method.RequiresInstanceReceiver && methodGroup.
Receiver
?.Type?.IsRestrictedType() == true)
Binder\Semantics\OverloadResolution\MethodGroup.cs (4)
107
if (this.
Receiver
== null)
112
if (this.
Receiver
.Kind == BoundKind.TypeExpression)
117
return this.
Receiver
;
124
Debug.Assert(this.
Receiver
== null);