Binder\Binder.ValueChecks.cs (16)
878return CheckMethodReturnValueKind(call.Method, call.Syntax, node, valueKind, checkingReceiver, diagnostics);
896return CheckMethodReturnValueKind(sliceAccess.Method, sliceAccess.Syntax, node, valueKind, checkingReceiver, diagnostics);
3529var methodSymbol = call.Method;
3536MethodInfo.Create(call.Method),
3612var methodSymbol = call.Method;
3619MethodInfo.Create(call.Method),
3853var methodSymbol = call.Method;
3936var methodSymbol = call.Method;
4258MethodInfo.Create(call.Method),
4261call.Method.Parameters,
4328MethodInfo.Create(call.Method),
4331call.Method.Parameters,
5006var methodSymbol = call.Method;
5094var methodSymbol = call.Method;
5837if (part is not BoundCall { Method.Name: BoundInterpolatedString.AppendFormattedMethod } call)
5851call.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 (12)
1549return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } }
6484bool isNewExtensionMethod = node.Method.GetIsNewExtensionMember();
6491CheckCallReceiver(receiver, receiverType, node.Method);
6499var refKind = isNewExtensionMethod ? GetExtensionReceiverRefKind(node.Method) : GetRefKind(node.ArgumentRefKindsOpt, 0);
6504Debug.Assert(node.Method.ContainingType.ExtensionParameter is not null);
6505annotations = node.Method.ContainingType.ExtensionParameter.FlowAnalysisAnnotations;
6510annotations = GetCorrespondingParameter(0, node.Method.Parameters, node.ArgsToParamsOpt, node.Expanded, ref paramsIterationType).Annotations;
6554return VisitAndCheckReceiver(node.ReceiverOpt, node.Method);
6563node.Method,
6582SetUpdatedSymbol(node, node.Method, method);
7361if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } })
10678var deconstructMethod = invocation?.Method;