Binder\Binder_Query.cs (4)
328result.ReceiverOpt, result.InitialBindingReceiverIsSubjectToCloning, result.Method, arguments.ToImmutableAndFree(), argumentNamesOpt: default,
472invocation = invocation.Update(invocation.ReceiverOpt, invocation.InitialBindingReceiverIsSubjectToCloning, invocation.Method, arguments);
541invocation = invocation.Update(invocation.ReceiverOpt, invocation.InitialBindingReceiverIsSubjectToCloning, invocation.Method, arguments);
632invocation.Method,
Binder\Binder.ValueChecks.cs (10)
116MethodInfo = MethodInfo.Create(call.Method),
117Parameters = call.Method.Parameters,
1099return CheckMethodReturnValueKind(call.Method, call.Syntax, node, valueKind, checkingReceiver, diagnostics);
1117return CheckMethodReturnValueKind(sliceAccess.Method, sliceAccess.Syntax, node, valueKind, checkingReceiver, diagnostics);
3789var methodSymbol = call.Method;
3849var methodSymbol = call.Method;
4079var methodSymbol = call.Method;
4146var methodSymbol = call.Method;
5170var methodSymbol = call.Method;
5235var methodSymbol = call.Method;
BoundTree\Constructors.cs (1)
167return this.Update(ReceiverOpt, InitialBindingReceiverIsSubjectToCloning, Method, arguments, ArgumentNamesOpt, ArgumentRefKindsOpt, IsDelegateCall, Expanded, InvokedAsExtensionMethod, ArgsToParamsOpt, DefaultArguments, ResultKind, OriginalMethodsOpt, Type);
CodeGen\Optimizer.cs (6)
1066Debug.Assert(((BoundCall)lhs).Method.RefKind == RefKind.Ref, "only ref returning methods are assignable");
1168MethodSymbol method = node.Method;
1199var rewrittenArguments = VisitArguments(node.Arguments, node.Method.Parameters, node.ArgumentRefKindsOpt);
1200return node.Update(receiver, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, node.Method, rewrittenArguments);
2323if (node.Method.RequiresInstanceReceiver)
2349return node.Update(receiverOpt, node.InitialBindingReceiverIsSubjectToCloning, node.Method, arguments, node.ArgumentNamesOpt, node.ArgumentRefKindsOpt, node.IsDelegateCall, node.Expanded, node.InvokedAsExtensionMethod, node.ArgsToParamsOpt, node.DefaultArguments, node.ResultKind, node.OriginalMethodsOpt, type);
FlowAnalysis\NullableWalker.cs (22)
1628return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } }
4073call.Method.Parameters,
4078call.Method,
4101Debug.Assert(allTypeArguments.Length == call.Method.Arity, "Guaranteed by GetCollectionBuilderMethods");
4103var constructed = call.Method.Arity == 0 ? call.Method : call.Method.ConstructedFrom.Construct(allTypeArguments);
4106if (!ReferenceEquals(call.Method, constructed))
4107SetUpdatedSymbol(call, call.Method, constructed);
6898bool isExtensionBlockMethod = node.Method.IsExtensionBlockMember();
6905CheckCallReceiver(receiver, receiverType, node.Method);
6913var refKind = isExtensionBlockMethod ? GetExtensionReceiverRefKind(node.Method) : GetRefKind(node.ArgumentRefKindsOpt, 0);
6918Debug.Assert(node.Method.ContainingType.ExtensionParameter is not null);
6919annotations = node.Method.ContainingType.ExtensionParameter.FlowAnalysisAnnotations;
6924annotations = GetCorrespondingParameter(0, node.Method.Parameters, node.ArgsToParamsOpt, node.Expanded, ref paramsIterationType).Annotations;
6974return VisitAndCheckReceiver(node.ReceiverOpt, node.Method);
6994SetUpdatedSymbol(node, node.Method, node.Method);
7002node.Method,
7025SetUpdatedSymbol(node, node.Method, method);
7835if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } })
11557if (invocation is { Method: { } deconstructMethod, IsErroneousNode: false })