Binder\Binder.ValueChecks.cs (16)
882return CheckMethodReturnValueKind(call.Method, call.Syntax, node, valueKind, checkingReceiver, diagnostics);
900return CheckMethodReturnValueKind(sliceAccess.Method, sliceAccess.Syntax, node, valueKind, checkingReceiver, diagnostics);
3525var methodSymbol = call.Method;
3532MethodInfo.Create(call.Method),
3608var methodSymbol = call.Method;
3615MethodInfo.Create(call.Method),
3842var methodSymbol = call.Method;
3925var methodSymbol = call.Method;
4240MethodInfo.Create(call.Method),
4243call.Method.Parameters,
4310MethodInfo.Create(call.Method),
4313call.Method.Parameters,
4954var methodSymbol = call.Method;
5042var methodSymbol = call.Method;
5750if (part is not BoundCall { Method.Name: BoundInterpolatedString.AppendFormattedMethod } call)
5764call.Method.Parameters[0].EffectiveScope == ScopedKind.ScopedValue)
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,
BoundTree\Constructors.cs (1)
160return this.Update(ReceiverOpt, InitialBindingReceiverIsSubjectToCloning, Method, arguments, ArgumentNamesOpt, ArgumentRefKindsOpt, IsDelegateCall, Expanded, InvokedAsExtensionMethod, ArgsToParamsOpt, DefaultArguments, ResultKind, OriginalMethodsOpt, Type);
CodeGen\Optimizer.cs (6)
1057Debug.Assert(((BoundCall)lhs).Method.RefKind == RefKind.Ref, "only ref returning methods are assignable");
1157MethodSymbol method = node.Method;
1188var rewrittenArguments = VisitArguments(node.Arguments, node.Method.Parameters, node.ArgumentRefKindsOpt);
1189return node.Update(receiver, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, node.Method, rewrittenArguments);
2255if (node.Method.RequiresInstanceReceiver)
2281return 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 (8)
1534return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } }
6362CheckCallReceiver(receiver, receiverType, node.Method);
6370var annotations = GetCorrespondingParameter(0, node.Method.Parameters, node.ArgsToParamsOpt, node.Expanded, ref paramsIterationType).Annotations;
6417CheckCallReceiver(receiver, receiverType, node.Method);
6426var method = node.Method;
6450SetUpdatedSymbol(node, node.Method, method);
7072if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } })
10337var deconstructMethod = invocation?.Method;