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,
4851var methodSymbol = call.Method;
4939var methodSymbol = call.Method;
5647if (part is not BoundCall { Method.Name: BoundInterpolatedString.AppendFormattedMethod } call)
5661call.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)
1522return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } }
6275CheckCallReceiver(receiver, receiverType, node.Method);
6283var annotations = GetCorrespondingParameter(0, node.Method.Parameters, node.ArgsToParamsOpt, node.Expanded, ref paramsIterationType).Annotations;
6330CheckCallReceiver(receiver, receiverType, node.Method);
6338var method = node.Method;
6362SetUpdatedSymbol(node, node.Method, method);
6978if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } })
10218var 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))
11779return 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);
13967MethodSymbol method = GetUpdatedSymbol(node, node.Method);
16424new 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);