Binder\Binder.ValueChecks.cs (10)
137MethodInfo = MethodInfo.Create(call.Method),
138Parameters = call.Method.Parameters,
1099return CheckMethodReturnValueKind(call.Method, call.Syntax, node, valueKind, checkingReceiver, diagnostics);
1117return CheckMethodReturnValueKind(sliceAccess.Method, sliceAccess.Syntax, node, valueKind, checkingReceiver, diagnostics);
3775var methodSymbol = call.Method;
3839var methodSymbol = call.Method;
4067var methodSymbol = call.Method;
4137var methodSymbol = call.Method;
5126var methodSymbol = call.Method;
5195var methodSymbol = call.Method;
Binder\Binder_Query.cs (4)
328result.ReceiverOpt, result.InitialBindingReceiverIsSubjectToCloning, result.Method, arguments.ToImmutableAndFree(), argumentNamesOpt: default,
474invocation = invocation.Update(invocation.ReceiverOpt, invocation.InitialBindingReceiverIsSubjectToCloning, invocation.Method, arguments);
545invocation = invocation.Update(invocation.ReceiverOpt, invocation.InitialBindingReceiverIsSubjectToCloning, invocation.Method, arguments);
637invocation.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");
1166MethodSymbol method = node.Method;
1197var rewrittenArguments = VisitArguments(node.Arguments, node.Method.Parameters, node.ArgumentRefKindsOpt);
1198return node.Update(receiver, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, node.Method, rewrittenArguments);
2264if (node.Method.RequiresInstanceReceiver)
2290return 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 (14)
1574return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } }
6564bool isNewExtensionMethod = node.Method.GetIsNewExtensionMember();
6571CheckCallReceiver(receiver, receiverType, node.Method);
6579var refKind = isNewExtensionMethod ? GetExtensionReceiverRefKind(node.Method) : GetRefKind(node.ArgumentRefKindsOpt, 0);
6584Debug.Assert(node.Method.ContainingType.ExtensionParameter is not null);
6585annotations = node.Method.ContainingType.ExtensionParameter.FlowAnalysisAnnotations;
6590annotations = GetCorrespondingParameter(0, node.Method.Parameters, node.ArgsToParamsOpt, node.Expanded, ref paramsIterationType).Annotations;
6640return VisitAndCheckReceiver(node.ReceiverOpt, node.Method);
6660SetUpdatedSymbol(node, node.Method, node.Method);
6668node.Method,
6686SetUpdatedSymbol(node, node.Method, method);
7460if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } })
10832if (invocation is { Method: { } deconstructMethod, IsErroneousNode: false })