Binder\Binder.ValueChecks.cs (24)
409var parameters = accessorForDefaultArguments.Parameters;
3432methodSymbol.Parameters,
3515methodSymbol.Parameters,
3750methodSymbol.Parameters,
3833methodSymbol.Parameters,
4140call.Method.Parameters,
4210call.Method.Parameters,
4265constructorSymbol.Parameters,
4310unaryMethod.Parameters,
4363operatorMethod.Parameters,
4395compoundMethod.Parameters,
4415binaryMethod.Parameters,
4439uo.LogicalOperator.Parameters,
4539if (constructMethod is not { Parameters: [{ RefKind: RefKind.None } parameter] })
4648methodInfo.Method.Parameters,
4858methodSymbol.Parameters,
4946methodSymbol.Parameters,
5013constructorSymbol.Parameters,
5080unaryMethod.Parameters,
5148operatorMethod.Parameters,
5183compoundMethod.Parameters,
5212binaryMethod.Parameters,
5244uo.LogicalOperator.Parameters,
5661call.Method.Parameters[0].EffectiveScope == ScopedKind.ScopedValue)
Binder\Binder_Expressions.cs (6)
4988var baseParameter = GetCorrespondingParameter(i, resultMember.Parameters, argsToParamsOpt, expanded: true);
5009BindDefaultArguments(nonNullSyntax, resultMember.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argsToParamsOpt, out var defaultArguments, expanded, enableCallerInfo, diagnostics);
6768BindDefaultArguments(node, method.Parameters, analyzedArguments.Arguments, analyzedArguments.RefKinds, analyzedArguments.Names, ref argToParams, out var defaultArguments, expanded, enableCallerInfo: true, diagnostics);
10135original.Parameters[0] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None } &&
10136original.Parameters[1] is { Type.SpecialType: SpecialType.System_Int32, RefKind: RefKind.None };
10799var 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)
2863var methodParameters = methodSymbol.Parameters;
2864var signatureParameters = (_useDelegateInvokeParameterTypes ? _delegateInvokeMethod! : methodSymbol).Parameters;
3004EnforceNotNullIfNotNull(node.Syntax, this.State, method.Parameters, method.ReturnNotNullIfParameterNotNull, ResultType.State, outputParam: null);
3674return invokeMethod!.Parameters.SequenceEqual(l.Parameters,
3923node, arguments, node.ArgumentRefKindsOpt, constructor?.Parameters ?? default,
3990argumentsCompletion(argumentResults, constructor?.Parameters ?? default, constructor);
4376addMethod.Parameters,
4432node, containingType, visitArgumentsCompletion.Invoke(argumentResults, addMethod.Parameters, addMethod).method,
4909if ((leftType.IsNotNull && methodOpt.ReturnNotNullIfParameterNotNull.Contains(methodOpt.Parameters[0].Name)) ||
4910(rightType.IsNotNull && methodOpt.ReturnNotNullIfParameterNotNull.Contains(methodOpt.Parameters[1].Name)))
5164var parameters = method.Parameters;
6283var annotations = GetCorrespondingParameter(0, node.Method.Parameters, node.ArgsToParamsOpt, node.Expanded, ref paramsIterationType).Annotations;
6348(method, results, returnNotNull) = VisitArguments(node, node.Arguments, refKindsOpt, method!.Parameters, node.ArgsToParamsOpt, node.DefaultArguments,
6426var parameterType = method.Parameters[0].TypeWithAnnotations;
6785return VisitArguments(node, arguments, refKindsOpt, method is null ? default : method.Parameters, argsToParamsOpt, defaultArguments, expanded, invokedAsExtensionMethod, method);
6892parametersOpt = method.Parameters;
8924NamedTypeSymbol { TypeKind: TypeKind.Delegate, DelegateInvokeMethod: { Parameters: { } parameters } signature } => (signature, parameters),
9441var parameter = method.Parameters[0];
9740method = CheckMethodGroupReceiverNullability(group, delegateInvokeMethod.Parameters, method, node.IsExtensionMethod);
9896CheckExtensionMethodThisNullability(receiverOpt, Conversion.Identity, method.Parameters[0], receiverType);
10257var parameters = deconstructMethod.Parameters;
10265CheckExtensionMethodThisNullability(right, argConversion, deconstructMethod.Parameters[0], rightResult);
10497targetTypeOfOperandConversion = incrementOperator.Parameters[0].TypeWithAnnotations;
10499parameter = incrementOperator.Parameters[0];
10958if (enumeratorInfoOpt?.GetEnumeratorInfo is { Method: { IsExtensionMethod: true, Parameters: var parameters } } enumeratorMethodInfo)
11324var parameter = method.Parameters[0];
11451ReportArgumentWarnings(left!, leftType, trueFalseOperator.Parameters[0]);
11456ReportArgumentWarnings(left!, leftType, logicalOperator.Parameters[0]);
11466ReportArgumentWarnings(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)));