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),
3846var methodSymbol = call.Method;
3929var methodSymbol = call.Method;
4244MethodInfo.Create(call.Method),
4247call.Method.Parameters,
4314MethodInfo.Create(call.Method),
4317call.Method.Parameters,
4967var methodSymbol = call.Method;
5055var methodSymbol = call.Method;
5770if (part is not BoundCall { Method.Name: BoundInterpolatedString.AppendFormattedMethod } call)
5784call.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);
7212if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } })
10529var deconstructMethod = invocation?.Method;