Binder\Binder.ValueChecks.cs (24)
432var parameters = accessorForDefaultArguments.Parameters;
3455methodSymbol.Parameters,
3538methodSymbol.Parameters,
3773methodSymbol.Parameters,
3856methodSymbol.Parameters,
4164call.Method.Parameters,
4234call.Method.Parameters,
4289constructorSymbol.Parameters,
4334unaryMethod.Parameters,
4387operatorMethod.Parameters,
4419compoundMethod.Parameters,
4439binaryMethod.Parameters,
4463uo.LogicalOperator.Parameters,
4563if (constructMethod is not { Parameters: [{ RefKind: RefKind.None } parameter] })
4666methodInfo.Method.Parameters,
4876methodSymbol.Parameters,
4964methodSymbol.Parameters,
5031constructorSymbol.Parameters,
5098unaryMethod.Parameters,
5166operatorMethod.Parameters,
5201compoundMethod.Parameters,
5230binaryMethod.Parameters,
5262uo.LogicalOperator.Parameters,
5679call.Method.Parameters[0].EffectiveScope == ScopedKind.ScopedValue)
Binder\Binder_Expressions.cs (6)
4985var baseParameter = GetCorrespondingParameter(i, resultMember.Parameters, argsToParamsOpt, expanded: true);
5006BindDefaultArguments(nonNullSyntax, resultMember.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParamsOpt, out var defaultArguments, expanded, enableCallerInfo, diagnostics);
6765BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics);
10134original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None } &&
10135original.Parameters[1] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None };
10798var parameters = methodSymbol.Parameters;
Binder\Binder_Invocation.cs (4)
926argumentSyntax, singleCandidate.Parameters.Last().Name, singleCandidate.Name);
1202BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics);
1215ParameterSymbol receiverParameter = method.Parameters.First();
1973parameterListList.Add(m.Parameters);
FlowAnalysis\NullableWalker.cs (29)
2802var methodParameters = methodSymbol.Parameters;
2803var signatureParameters = (_useDelegateInvokeParameterTypes ? _delegateInvokeMethod! : methodSymbol).Parameters;
2943EnforceNotNullIfNotNull(node.Syntax, this.State, method.Parameters, method.ReturnNotNullIfParameterNotNull, ResultType.State, outputParam: null);
3613return invokeMethod!.Parameters.SequenceEqual(l.Parameters,
3862node, arguments, node.ArgumentRefKindsOpt, constructor?.Parameters ?? default,
3929argumentsCompletion(argumentResults, constructor?.Parameters ?? default, constructor);
4315addMethod.Parameters,
4371node, containingType, visitArgumentsCompletion.Invoke(argumentResults, addMethod.Parameters, addMethod).method,
4848if ((leftType.IsNotNull && methodOpt.ReturnNotNullIfParameterNotNull.Contains(methodOpt.Parameters[0].Name)) ||
4849(rightType.IsNotNull && methodOpt.ReturnNotNullIfParameterNotNull.Contains(methodOpt.Parameters[1].Name)))
5103var parameters = method.Parameters;
6222var annotations = GetCorrespondingParameter(0, node.Method.Parameters, node.ArgsToParamsOpt, node.Expanded, ref paramsIterationType).Annotations;
6287(method, results, returnNotNull) = VisitArguments(node, node.Arguments, refKindsOpt, method!.Parameters, node.ArgsToParamsOpt, node.DefaultArguments,
6365var parameterType = method.Parameters[0].TypeWithAnnotations;
6724return VisitArguments(node, arguments, refKindsOpt, method is null ? default : method.Parameters, argsToParamsOpt, defaultArguments, expanded, invokedAsExtensionMethod, method);
6831parametersOpt = method.Parameters;
8866NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { Parameters: { } parameters } signature } => (signature, parameters),
9383var parameter = method.Parameters[0];
9682method = CheckMethodGroupReceiverNullability(group, delegateInvokeMethod.Parameters, method, node.IsExtensionMethod);
9838CheckExtensionMethodThisNullability(receiverOpt, Conversion.Identity, method.Parameters[0], receiverType);
10199var parameters = deconstructMethod.Parameters;
10207CheckExtensionMethodThisNullability(right, argConversion, deconstructMethod.Parameters[0], rightResult);
10439targetTypeOfOperandConversion = incrementOperator.Parameters[0].TypeWithAnnotations;
10441parameter = incrementOperator.Parameters[0];
10900if (enumeratorInfoOpt?.GetEnumeratorInfo is { Method: { IsExtensionMethod: true, Parameters: var parameters } } enumeratorMethodInfo)
11266var parameter = method.Parameters[0];
11393ReportArgumentWarnings(left!, leftType, trueFalseOperator.Parameters[0]);
11398ReportArgumentWarnings(left!, leftType, logicalOperator.Parameters[0]);
11408ReportArgumentWarnings(right, rightType, logicalOperator.Parameters[1]);
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (15)
142if (_isEnumerable && this.method.Parameters.Any(static p => p.IsSourceParameterWithEnumeratorCancellationAttribute()))
169bodyBuilder.Add(F.Assignment(F.InstanceField(stateField), F.Parameter(F.CurrentFunction.Parameters[0]))); // this.state = state;
232BoundParameter tokenParameter = F.Parameter(getEnumeratorMethod.Parameters[0]);
512F.Call(F.InstanceField(_promiseOfValueOrEndField), promise_GetResult, F.Parameter(IValueTaskSourceOfBool_GetResult.Parameters[0]))));
537F.Call(F.InstanceField(_promiseOfValueOrEndField), promise_GetStatus, F.Parameter(IValueTaskSourceOfBool_GetStatus.Parameters[0]))));
565F.Parameter(IValueTaskSourceOfBool_OnCompleted.Parameters[0]),
566F.Parameter(IValueTaskSourceOfBool_OnCompleted.Parameters[1]),
567F.Parameter(IValueTaskSourceOfBool_OnCompleted.Parameters[2]),
568F.Parameter(IValueTaskSourceOfBool_OnCompleted.Parameters[3]))),
590F.ExpressionStatement(F.Call(F.InstanceField(_promiseOfValueOrEndField), promise_GetResult, F.Parameter(IValueTaskSource_GetResult.Parameters[0]))),
614F.Call(F.InstanceField(_promiseOfValueOrEndField), promise_GetStatus, F.Parameter(IValueTaskSource_GetStatus.Parameters[0]))));
638F.Parameter(IValueTaskSource_OnCompleted.Parameters[0]),
639F.Parameter(IValueTaskSource_OnCompleted.Parameters[1]),
640F.Parameter(IValueTaskSource_OnCompleted.Parameters[2]),
641F.Parameter(IValueTaskSource_OnCompleted.Parameters[3]))),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (5)
702var conversionInputType = method.Parameters[0].Type;
709? Convert(Visit(node.Operand), node.Operand.Type, method.Parameters[0].Type, node.Checked, false)
767unquoted = _bound.Call(_bound.MethodInfo(method, createDelegate.ContainingType), createDelegate, _bound.Typeof(delegateType, createDelegate.Parameters[0].Type), receiver);
774_bound.Typeof(delegateType, createDelegate.Parameters[0].Type),
776_bound.MethodInfo(method, createDelegate.Parameters[2].Type));
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (5)
305foreach (var parameter in _factory.CurrentFunction.Parameters)
316MakeStoreLoggerArguments(parameterLogger.Parameters[0], parameter, parameter.Type, _factory.Parameter(parameter), refAssignmentSourceIndex: null, _factory.Literal((ushort)parameter.Ordinal)))));
405MakeStoreLoggerArguments(logger.Parameters[0], targetSymbol, targetType, assignment, refAssignmentSourceIndex, targetIndex))
535MakeStoreLoggerArguments(logger.Parameters[0], targetSymbol, targetType, VariableRead(targetSymbol), refAssignmentSourceIndex: null, targetIndex)));
598MakeStoreLoggerArguments(logger.Parameters[0], targetSymbol, targetType, VariableRead(targetSymbol), refAssignmentSourceIndex: null, targetIndex)));