Binder\Binder.ValueChecks.cs (10)
136MethodInfo = MethodInfo.Create(call.Method),
137Parameters = call.Method.Parameters,
1120return CheckMethodReturnValueKind(call.Method, call.Syntax, node, valueKind, checkingReceiver, diagnostics);
1138return CheckMethodReturnValueKind(sliceAccess.Method, sliceAccess.Syntax, node, valueKind, checkingReceiver, diagnostics);
3814var methodSymbol = call.Method;
3874var methodSymbol = call.Method;
4100var methodSymbol = call.Method;
4167var methodSymbol = call.Method;
5145var methodSymbol = call.Method;
5210var methodSymbol = call.Method;
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)
167return 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);
2267if (node.Method.RequiresInstanceReceiver)
2293return 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 (22)
1572return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } }
3962call.Method.Parameters,
3967call.Method,
3990Debug.Assert(allTypeArguments.Length == call.Method.Arity, "Guaranteed by GetCollectionBuilderMethods");
3992var constructed = call.Method.Arity == 0 ? call.Method : call.Method.ConstructedFrom.Construct(allTypeArguments);
3995if (!ReferenceEquals(call.Method, constructed))
3996SetUpdatedSymbol(call, call.Method, constructed);
6717bool isExtensionBlockMethod = node.Method.IsExtensionBlockMember();
6724CheckCallReceiver(receiver, receiverType, node.Method);
6732var refKind = isExtensionBlockMethod ? GetExtensionReceiverRefKind(node.Method) : GetRefKind(node.ArgumentRefKindsOpt, 0);
6737Debug.Assert(node.Method.ContainingType.ExtensionParameter is not null);
6738annotations = node.Method.ContainingType.ExtensionParameter.FlowAnalysisAnnotations;
6743annotations = GetCorrespondingParameter(0, node.Method.Parameters, node.ArgsToParamsOpt, node.Expanded, ref paramsIterationType).Annotations;
6793return VisitAndCheckReceiver(node.ReceiverOpt, node.Method);
6813SetUpdatedSymbol(node, node.Method, node.Method);
6821node.Method,
6844SetUpdatedSymbol(node, node.Method, method);
7612if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } })
10994if (invocation is { Method: { } deconstructMethod, IsErroneousNode: false })