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