Binder\Binder.ValueChecks.cs (16)
877return CheckMethodReturnValueKind(call.Method, call.Syntax, node, valueKind, checkingReceiver, diagnostics);
895return CheckMethodReturnValueKind(sliceAccess.Method, sliceAccess.Syntax, node, valueKind, checkingReceiver, diagnostics);
3530var methodSymbol = call.Method;
3537MethodInfo.Create(call.Method),
3613var methodSymbol = call.Method;
3620MethodInfo.Create(call.Method),
3854var methodSymbol = call.Method;
3937var methodSymbol = call.Method;
4259MethodInfo.Create(call.Method),
4262call.Method.Parameters,
4329MethodInfo.Create(call.Method),
4332call.Method.Parameters,
5007var methodSymbol = call.Method;
5095var methodSymbol = call.Method;
5838if (part is not BoundCall { Method.Name: BoundInterpolatedString.AppendFormattedMethod } call)
5852call.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)
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 (12)
1555return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } }
6491bool isNewExtensionMethod = node.Method.GetIsNewExtensionMember();
6498CheckCallReceiver(receiver, receiverType, node.Method);
6506var refKind = isNewExtensionMethod ? GetExtensionReceiverRefKind(node.Method) : GetRefKind(node.ArgumentRefKindsOpt, 0);
6511Debug.Assert(node.Method.ContainingType.ExtensionParameter is not null);
6512annotations = node.Method.ContainingType.ExtensionParameter.FlowAnalysisAnnotations;
6517annotations = GetCorrespondingParameter(0, node.Method.Parameters, node.ArgsToParamsOpt, node.Expanded, ref paramsIterationType).Annotations;
6561return VisitAndCheckReceiver(node.ReceiverOpt, node.Method);
6570node.Method,
6589SetUpdatedSymbol(node, node.Method, method);
7364if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } })
10690var deconstructMethod = invocation?.Method;