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,
4963var methodSymbol = call.Method;
5051var methodSymbol = call.Method;
5766if (part is not BoundCall { Method.Name: BoundInterpolatedString.AppendFormattedMethod } call)
5780call.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)
1056Debug.Assert(((BoundCall)lhs).Method.RefKind == RefKind.Ref, "only ref returning methods are assignable");
1156MethodSymbol method = node.Method;
1187var rewrittenArguments = VisitArguments(node.Arguments, node.Method.Parameters, node.ArgumentRefKindsOpt);
1188return node.Update(receiver, initialBindingReceiverIsSubjectToCloning: ThreeState.Unknown, node.Method, rewrittenArguments);
2254if (node.Method.RequiresInstanceReceiver)
2280return 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 (13)
1549return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } }
6368bool isNewExtensionMethod = node.Method.GetIsNewExtensionMember();
6375CheckCallReceiver(receiver, receiverType, node.Method);
6383var refKind = isNewExtensionMethod ? GetExtensionReceiverRefKind(node.Method) : GetRefKind(node.ArgumentRefKindsOpt, 0);
6388Debug.Assert(node.Method.ContainingType.ExtensionParameter is not null);
6389annotations = node.Method.ContainingType.ExtensionParameter.FlowAnalysisAnnotations;
6394annotations = GetCorrespondingParameter(0, node.Method.Parameters, node.ArgsToParamsOpt, node.Expanded, ref paramsIterationType).Annotations;
6441if (node.ReceiverOpt is { } receiver && !node.Method.GetIsNewExtensionMember())
6444CheckCallReceiver(receiver, receiverType, node.Method);
6452MethodSymbol? method = node.Method;
6486SetUpdatedSymbol(node, node.Method, method);
7193if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } })
10479var deconstructMethod = invocation?.Method;