Binder\Binder.ValueChecks.cs (16)
852return CheckMethodReturnValueKind(call.Method, call.Syntax, node, valueKind, checkingReceiver, diagnostics);
870return CheckMethodReturnValueKind(sliceAccess.Method, sliceAccess.Syntax, node, valueKind, checkingReceiver, diagnostics);
3422var methodSymbol = call.Method;
3429MethodInfo.Create(call.Method),
3505var methodSymbol = call.Method;
3512MethodInfo.Create(call.Method),
3739var methodSymbol = call.Method;
3822var methodSymbol = call.Method;
4137MethodInfo.Create(call.Method),
4140call.Method.Parameters,
4207MethodInfo.Create(call.Method),
4210call.Method.Parameters,
4845var methodSymbol = call.Method;
4933var methodSymbol = call.Method;
5641if (part is not BoundCall { Method.Name: BoundInterpolatedString.AppendFormattedMethod } call)
5655call.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)
1461return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } }
6214CheckCallReceiver(receiver, receiverType, node.Method);
6222var annotations = GetCorrespondingParameter(0, node.Method.Parameters, node.ArgsToParamsOpt, node.Expanded, ref paramsIterationType).Annotations;
6269CheckCallReceiver(receiver, receiverType, node.Method);
6277var method = node.Method;
6301SetUpdatedSymbol(node, node.Method, method);
6917if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } })
10157var deconstructMethod = invocation?.Method;
Generated\BoundNodes.xml.Generated.cs (4)
6187if (receiverOpt != this.ReceiverOpt || initialBindingReceiverIsSubjectToCloning != this.InitialBindingReceiverIsSubjectToCloning || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(method, this.Method) || arguments != this.Arguments || argumentNamesOpt != this.ArgumentNamesOpt || argumentRefKindsOpt != this.ArgumentRefKindsOpt || isDelegateCall != this.IsDelegateCall || expanded != this.Expanded || invokedAsExtensionMethod != this.InvokedAsExtensionMethod || argsToParamsOpt != this.ArgsToParamsOpt || defaultArguments != this.DefaultArguments || resultKind != this.ResultKind || originalMethodsOpt != this.OriginalMethodsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11743return 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);
13931MethodSymbol method = GetUpdatedSymbol(node, node.Method);
16388new TreeDumperNode("method", node.Method, null),
Lowering\DiagnosticsPass_ExpressionTrees.cs (4)
470VisitCall(node.Method, null, node.Arguments, node.ArgumentRefKindsOpt, node.ArgumentNamesOpt, node.DefaultArguments, node);
471CheckReferenceToMethodIfLocalFunction(node, node.Method);
480VisitCall(node.Method, null, node.Arguments, node.ArgumentRefKindsOpt, node.ArgumentNamesOpt, node.DefaultArguments, node);
482CheckReferenceToMethodIfLocalFunction(node, node.Method);