235 references to ArgumentList
Microsoft.AspNetCore.App.Analyzers (1)
Kestrel\ListenOnIPv6AnyAnalyzer.cs (1)
53var args = kestrelOptionsListenExpressionSyntax.ArgumentList;
Microsoft.AspNetCore.App.CodeFixes (9)
Authorization\AddAuthorizationBuilderFixer.cs (2)
61if (diagnosticTarget is InvocationExpressionSyntax { ArgumentList.Arguments: { Count: 1 } arguments, Expression: MemberAccessExpressionSyntax { Name.Identifier: { } identifierToken } memberAccessExpression } 87if (configureAction is InvocationExpressionSyntax { ArgumentList.Arguments: { Count: 2 } configureArguments, Expression: MemberAccessExpressionSyntax { Name.Identifier.Text: "AddPolicy" } })
Http\HeaderDictionaryAddFixer.cs (1)
120ArgumentList.Arguments: { Count: 2 } arguments
Kestrel\ListenOnIPv6AnyFixer.cs (3)
47if (argumentSyntax.Parent?.Parent is not InvocationExpressionSyntax { ArgumentList.Arguments.Count: > 1 } invocationExpressionSyntax) 57var adjustedArgumentList = invocationExpressionSyntax.ArgumentList.RemoveNode(invocationExpressionSyntax.ArgumentList.Arguments.First(), SyntaxRemoveOptions.KeepLeadingTrivia);
WebApplicationBuilderFixer.cs (3)
113if (invocation.ArgumentList.Arguments.SingleOrDefault() is not { } initArgument 131var argument = expr.ArgumentList; 152var arguments = body.ArgumentList;
Microsoft.AspNetCore.OpenApi.SourceGenerators (2)
XmlCommentGenerator.Parser.cs (2)
157var argumentsCount = invocationExpression.ArgumentList.Arguments.Count; 171var argument = invocationExpression.ArgumentList.Arguments[0];
Microsoft.CodeAnalysis.CSharp (17)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1650=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), (ArgumentListSyntax?)Visit(node.ArgumentList) ?? throw new ArgumentNullException("argumentList"));
_generated\2\Syntax.xml.Syntax.Generated.cs (4)
2512if (expression != this.Expression || argumentList != this.ArgumentList) 2522public InvocationExpressionSyntax WithExpression(ExpressionSyntax expression) => Update(expression, this.ArgumentList); 2525public InvocationExpressionSyntax AddArgumentListArguments(params ArgumentSyntax[] items) => WithArgumentList(this.ArgumentList.WithArguments(this.ArgumentList.Arguments.AddRange(items)));
Binder\Binder_Invocation.cs (5)
199BindArgumentsAndNames(node.ArgumentList, diagnostics, analyzedArguments, allowArglist: false); 248BindArgumentsAndNames(node.ArgumentList, diagnostics, analyzedArguments, allowArglist: true); 1417InvocationExpressionSyntax invocation => invocation.ArgumentList.OpenParenToken, 2365if (binder.EnclosingNameofArgument == node.ArgumentList.Arguments[0].Expression) 2379var argument = node.ArgumentList.Arguments[0].Expression;
Binder\ExpressionVariableFinder.cs (2)
383Visit(node.ArgumentList); 392Visit(node.ArgumentList);
Binder\LocalBinderFactory.cs (3)
233var argumentExpression = node.ArgumentList.Arguments[0].Expression; 260Visit(node.ArgumentList); 269Visit(node.ArgumentList);
Syntax\SyntaxNodeExtensions.cs (2)
57node.ArgumentList.Arguments.Count == 1) 59ArgumentSyntax argument = node.ArgumentList.Arguments[0];
Microsoft.CodeAnalysis.CSharp.Analyzers (4)
MetaAnalyzers\CSharpRegisterActionAnalyzer.cs (2)
58if (invocation.ArgumentList != null) 60return invocation.ArgumentList.Arguments.Select(a => a.Expression);
MetaAnalyzers\CSharpReportDiagnosticAnalyzer.cs (2)
31if (invocation.ArgumentList != null) 33return invocation.ArgumentList.Arguments.Select(a => a.Expression);
Microsoft.CodeAnalysis.CSharp.CodeStyle (28)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (2)
93if (parameters.Count != invocation.ArgumentList.Arguments.Count) 100var argument = invocation.ArgumentList.Arguments[i];
src\roslyn\src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastDiagnosticAnalyzer.cs (3)
110ArgumentList.Arguments: [{ Expression: LambdaExpressionSyntax whereLambda1 }], 128ArgumentList.Arguments: [], 147ArgumentList.Arguments: [
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (2)
139var arguments = invocationExpression.ArgumentList.Arguments; 218memberAccess.Parent is InvocationExpressionSyntax { ArgumentList.Arguments.Count: 0 } invocationExpression &&
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (2)
62invocationExpression.ArgumentList.OpenParenToken.Span.End)), 63invocationExpression.ArgumentList.CloseParenToken.GetLocation());
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (3)
268AddArgumentsInReverse(postMatchesInReverse, GetArguments(currentInvocationExpression.ArgumentList, unwrapArgument), useSpread); 412AddArgumentsInReverse(matchesInReverse, invocation.ArgumentList.Arguments, useSpread); 419if (invocation.ArgumentList.Arguments.Count > 0)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (3)
438AddRefLikeOutParameters(invocationExpression.ArgumentList, argumentToSkip: null); 935var arguments = invocationExpression.ArgumentList.Arguments; 1139if (invocation.ArgumentList.Arguments.Count != 0)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (3)
176spreadElements.Add(invocation.ArgumentList.Arguments[0].Expression); 178individualElementCount += invocation.ArgumentList.Arguments.Count; 244if (invocationExpression.ArgumentList.Arguments.Count != 0)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (3)
193else if (condition is InvocationExpressionSyntax { ArgumentList.Arguments.Count: 2 } invocation) 195var arg0 = invocation.ArgumentList.Arguments[0].Expression; 196var arg1 = invocation.ArgumentList.Arguments[1].Expression;
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (2)
96invocationSyntax.ArgumentList is null) 317var arguments = invocation.ArgumentList.Arguments;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (3)
410SimpleNameSyntax { Parent: InvocationExpressionSyntax invocation } => invocation.ArgumentList, 412SimpleNameSyntax { Parent: MemberAccessExpressionSyntax { Parent: InvocationExpressionSyntax invocation } memberAccess } when memberAccess.Name == node => invocation.ArgumentList, 414SimpleNameSyntax { Parent: MemberBindingExpressionSyntax { Parent: InvocationExpressionSyntax invocation } memberBinding } when memberBinding.Name == node => invocation.ArgumentList,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1586argumentList = invocation.ArgumentList;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
602SyntaxKind.InvocationExpression => ((InvocationExpressionSyntax)expression).ArgumentList,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (31)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateMethodService.cs (2)
114return !invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing; 121return !invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing;
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (5)
31_invocationExpression.ArgumentList, cancellationToken); 52foreach (var argument in _invocationExpression.ArgumentList.Arguments) 125=> [.. _invocationExpression.ArgumentList.Arguments.Select(a => a.GetRefKind())]; 128=> [.. _invocationExpression.ArgumentList.Arguments.Select(a => DetermineParameterType(a, cancellationToken))]; 134=> [.. _invocationExpression.ArgumentList.Arguments.Select(a => false)];
src\roslyn\src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (2)
93MemberBindingExpression(invokeName), invocationExpression.ArgumentList))); 136MemberBindingExpression(invokeName), invocationExpression.ArgumentList)));
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (4)
97var seenNamedArgument = currentInvocation.ArgumentList.Arguments.Any(a => a.NameColon != null); 98var seenDefaultArgumentValue = currentInvocation.ArgumentList.Arguments.Count < localFunction.ParameterList.Parameters.Count; 108var newArgumentsList = currentInvocation.ArgumentList.Arguments.AddRange(newArguments); 112var newArgList = currentInvocation.ArgumentList.WithArguments(newArgumentsList);
src\roslyn\src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
228var index = invocation.ArgumentList.Arguments.IndexOf(argument);
src\roslyn\src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (2)
67castOrSelectInvocation.ArgumentList, 68castOrSelectInvocation.ArgumentList.WithArguments([]));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
897var arguments = invocation.ArgumentList.Arguments;
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
55var arguments = GetArguments(invocationExpression.ArgumentList, unwrapArgument);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
116var arguments = invocation.ArgumentList.Arguments;
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (3)
63var arguments = invocationExpression.ArgumentList.Arguments; 133var canUseImplicitArray = invocation.ArgumentList.Arguments.Skip(indexToWrap).Any( 137invocation.ArgumentList,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (4)
93var argList = invocation.ArgumentList; 124invocation.ArgumentList, 125invocation.ArgumentList.WithArguments(arguments)); 159if (result.Invocation.ArgumentList.Arguments.Count == 1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
288return invocation.ReplaceNodes(invocation.ArgumentList.Arguments, (argumentNode, _) =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (1)
107if (existingArgument.Expression is InvocationExpressionSyntax { ArgumentList.Arguments: [{ Expression: var nameofArgument }] } invocation &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
289var index = invocation.ArgumentList.Arguments.IndexOf(argument); 1833if (invocation.ArgumentList.Arguments.Count > 0) 1835var argumentExpression = invocation.ArgumentList.Arguments[0].Expression;
Microsoft.CodeAnalysis.CSharp.Features (80)
ChangeSignature\CSharpChangeSignatureService.cs (3)
175: matchingNode.GetAncestorOrThis<InvocationExpressionSyntax>()?.ArgumentList; 427invocation.ArgumentList, 632InvocationExpressionSyntax invocation => invocation.ArgumentList,
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (7)
168var firstOptionalOrParamsArgument = invocation.ArgumentList.Arguments.FirstOrDefault( 182? invocation.ArgumentList.Arguments.IndexOf(firstOptionalOrParamsArgument) 183: invocation.ArgumentList.Arguments.Count; 186!supportsNonTrailing && invocation.ArgumentList.Arguments.Take(insertionIndex).Any(arg => arg.NameColon != null); 192invocation.ArgumentList, 193invocation.ArgumentList.WithArguments( 194invocation.ArgumentList.Arguments.InsertRange(insertionIndex, additionalArguments)));
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (4)
248invocationExpression.ArgumentList.Arguments.Count == 1) 258var selectExpression = invocationExpression.ArgumentList.Arguments.Single().Expression; 265invocationExpression.ArgumentList.OpenParenToken, 266invocationExpression.ArgumentList.CloseParenToken,
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
263AddArgumentTerms(invocationExpression.ArgumentList, terms, ref rightFlags);
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (3)
321if (invocation.ArgumentList?.Arguments.Count != 1 || 322invocation.ArgumentList.Arguments[0].Expression.Kind() == SyntaxKind.DeclarationExpression) 341var argumentExpression = currentInvocation.ArgumentList.Arguments[0].Expression.Parenthesize();
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (10)
42return expression?.ArgumentList is null ? null : expression; 50return expression.ArgumentList.Span.Contains(token.SpanStart) && 51token != expression.ArgumentList.CloseParenToken; 92var (currentSymbol, parameterIndexOverride) = new CSharpLightweightOverloadResolution(semanticModel, invocationExpression.ArgumentList.Arguments, position) 103var textSpan = SignatureHelpUtilities.GetSignatureHelpSpan(invocationExpression.ArgumentList); 139var parameterIndexOverride = new CSharpLightweightOverloadResolution(semanticModel, invocationExpression.ArgumentList.Arguments, position) 149var textSpan = SignatureHelpUtilities.GetSignatureHelpSpan(invocationExpression.ArgumentList); 163if (expression is { ArgumentList: not null } && 164currentSpan.Start == SignatureHelpUtilities.GetSignatureHelpSpan(expression.ArgumentList).Start) 166return SignatureHelpUtilities.GetSignatureHelpState(expression.ArgumentList, position);
Snippets\CSharpConsoleSnippetProvider.cs (1)
50=> ((InvocationExpressionSyntax)expression).ArgumentList;
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (2)
93if (parameters.Count != invocation.ArgumentList.Arguments.Count) 100var argument = invocation.ArgumentList.Arguments[i];
src\roslyn\src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastDiagnosticAnalyzer.cs (3)
110ArgumentList.Arguments: [{ Expression: LambdaExpressionSyntax whereLambda1 }], 128ArgumentList.Arguments: [], 147ArgumentList.Arguments: [
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (2)
139var arguments = invocationExpression.ArgumentList.Arguments; 218memberAccess.Parent is InvocationExpressionSyntax { ArgumentList.Arguments.Count: 0 } invocationExpression &&
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForCreateDiagnosticAnalyzer.cs (2)
62invocationExpression.ArgumentList.OpenParenToken.Span.End)), 63invocationExpression.ArgumentList.CloseParenToken.GetLocation());
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (3)
268AddArgumentsInReverse(postMatchesInReverse, GetArguments(currentInvocationExpression.ArgumentList, unwrapArgument), useSpread); 412AddArgumentsInReverse(matchesInReverse, invocation.ArgumentList.Arguments, useSpread); 419if (invocation.ArgumentList.Arguments.Count > 0)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (3)
438AddRefLikeOutParameters(invocationExpression.ArgumentList, argumentToSkip: null); 935var arguments = invocationExpression.ArgumentList.Arguments; 1139if (invocation.ArgumentList.Arguments.Count != 0)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (3)
176spreadElements.Add(invocation.ArgumentList.Arguments[0].Expression); 178individualElementCount += invocation.ArgumentList.Arguments.Count; 244if (invocationExpression.ArgumentList.Arguments.Count != 0)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (3)
193else if (condition is InvocationExpressionSyntax { ArgumentList.Arguments.Count: 2 } invocation) 195var arg0 = invocation.ArgumentList.Arguments[0].Expression; 196var arg1 = invocation.ArgumentList.Arguments[1].Expression;
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (2)
96invocationSyntax.ArgumentList is null) 317var arguments = invocation.ArgumentList.Arguments;
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateMethodService.cs (2)
114return !invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing; 121return !invocationExpressionOpt.ArgumentList.CloseParenToken.IsMissing;
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (5)
31_invocationExpression.ArgumentList, cancellationToken); 52foreach (var argument in _invocationExpression.ArgumentList.Arguments) 125=> [.. _invocationExpression.ArgumentList.Arguments.Select(a => a.GetRefKind())]; 128=> [.. _invocationExpression.ArgumentList.Arguments.Select(a => DetermineParameterType(a, cancellationToken))]; 134=> [.. _invocationExpression.ArgumentList.Arguments.Select(a => false)];
src\roslyn\src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (2)
93MemberBindingExpression(invokeName), invocationExpression.ArgumentList))); 136MemberBindingExpression(invokeName), invocationExpression.ArgumentList)));
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (4)
97var seenNamedArgument = currentInvocation.ArgumentList.Arguments.Any(a => a.NameColon != null); 98var seenDefaultArgumentValue = currentInvocation.ArgumentList.Arguments.Count < localFunction.ParameterList.Parameters.Count; 108var newArgumentsList = currentInvocation.ArgumentList.Arguments.AddRange(newArguments); 112var newArgList = currentInvocation.ArgumentList.WithArguments(newArgumentsList);
src\roslyn\src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
228var index = invocation.ArgumentList.Arguments.IndexOf(argument);
src\roslyn\src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (2)
67castOrSelectInvocation.ArgumentList, 68castOrSelectInvocation.ArgumentList.WithArguments([]));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
897var arguments = invocation.ArgumentList.Arguments;
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
55var arguments = GetArguments(invocationExpression.ArgumentList, unwrapArgument);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
116var arguments = invocation.ArgumentList.Arguments;
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (3)
63var arguments = invocationExpression.ArgumentList.Arguments; 133var canUseImplicitArray = invocation.ArgumentList.Arguments.Skip(indexToWrap).Any( 137invocation.ArgumentList,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (4)
93var argList = invocation.ArgumentList; 124invocation.ArgumentList, 125invocation.ArgumentList.WithArguments(arguments)); 159if (result.Invocation.ArgumentList.Arguments.Count == 1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
288return invocation.ReplaceNodes(invocation.ArgumentList.Arguments, (argumentNode, _) =>
Wrapping\SeparatedSyntaxList\CSharpArgumentWrapper.cs (1)
50InvocationExpressionSyntax invocationExpression => invocationExpression.ArgumentList,
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (20)
Microsoft.CodeQuality.Analyzers\Maintainability\CSharpUseCrossPlatformIntrinsicsFixer.cs (2)
40SeparatedSyntaxList<ArgumentSyntax> arguments = invocationExpression.ArgumentList.Arguments; 64SeparatedSyntaxList<ArgumentSyntax> arguments = invocationExpression.ArgumentList.Arguments;
Microsoft.NetCore.Analyzers\InteropServices\CSharpDynamicInterfaceCastableImplementation.Fixer.cs (2)
250var newArgList = currentInvocation.ArgumentList.WithArguments( 252.AddRange(currentInvocation.ArgumentList.Arguments));
Microsoft.NetCore.Analyzers\Performance\CSharpCollapseMultiplePathOperations.Fixer.cs (1)
75foreach (var argument in invocation.ArgumentList.Arguments)
Microsoft.NetCore.Analyzers\Performance\CSharpDoNotUseCountWhenAnyCanBeUsed.Fixer.cs (3)
57invocation.ArgumentList.Arguments.Count == 1 && 59sourceExpression: invocation.ArgumentList.Arguments[0].Expression, 151arguments = invocationExpression.ArgumentList.ChildNodes();
Microsoft.NetCore.Analyzers\Performance\CSharpPreferDictionaryTryMethodsOverContainsKeyGuardFixer.cs (2)
88changedValueNode = invocation.ArgumentList.Arguments[1].Expression; 222var dictionaryAddArguments = dictionaryAddInvocation.ArgumentList.Arguments;
Microsoft.NetCore.Analyzers\Performance\CSharpPreferHashDataOverComputeHash.Fixer.cs (1)
42var argumentList = ((InvocationExpressionSyntax)computeHashNode).ArgumentList;
Microsoft.NetCore.Analyzers\Performance\CSharpPreferIsEmptyOverCount.Fixer.cs (1)
41countNode = invocationExpression.ArgumentList.Arguments[0].Expression;
Microsoft.NetCore.Analyzers\Performance\CSharpPreferLengthCountIsEmptyOverAny.Fixer.cs (4)
25if (invocation.ArgumentList.Arguments.Count > 0) 27expression = invocation.ArgumentList.Arguments[0].Expression; 66if (invocation.ArgumentList.Arguments.Count > 0) 69expression = invocation.ArgumentList.Arguments[0].Expression;
Microsoft.NetCore.Analyzers\Runtime\CSharpForwardCancellationTokenToInvocations.Fixer.cs (1)
58arguments = invocationExpression.ArgumentList.Arguments.ToImmutableArray();
Microsoft.NetCore.Analyzers\Runtime\CSharpPreferAsSpanOverSubstring.Fixer.cs (1)
28var oldNameSyntax = cast.ArgumentList.Arguments
Microsoft.NetCore.Analyzers\Runtime\CSharpPreferDictionaryContainsMethods.Fixer.cs (1)
54var newInvocation = editor.Generator.InvocationExpression(containsMemberAccess, invocation.ArgumentList.Arguments);
Microsoft.NetCore.Analyzers\Usage\CSharpDoNotPassNonNullableValueToArgumentNullExceptionThrowIfNullFixer.cs (1)
22var nullableStructExpression = invocation.ArgumentList.Arguments[0].Expression;
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
Simplification\CSharpSimplificationService.Expander.cs (4)
786if (invocationExpression.ArgumentList != null) 788foreach (var argument in invocationExpression.ArgumentList.Arguments) 1111var arguments = originalNode.ArgumentList.Arguments.Insert(0, thisArgument); 1114originalNode.ArgumentList.WithArguments(arguments));
Simplification\Reducers\AbstractCSharpReducer.AbstractReductionRewriter.cs (1)
181var argumentList = (ArgumentListSyntax)this.Visit(node.ArgumentList);
Simplification\Reducers\CSharpExtensionMethodReducer.cs (1)
62var argumentList = node.ArgumentList;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (3)
410SimpleNameSyntax { Parent: InvocationExpressionSyntax invocation } => invocation.ArgumentList, 412SimpleNameSyntax { Parent: MemberAccessExpressionSyntax { Parent: InvocationExpressionSyntax invocation } memberAccess } when memberAccess.Name == node => invocation.ArgumentList, 414SimpleNameSyntax { Parent: MemberBindingExpressionSyntax { Parent: InvocationExpressionSyntax invocation } memberBinding } when memberBinding.Name == node => invocation.ArgumentList,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1586argumentList = invocation.ArgumentList;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
602SyntaxKind.InvocationExpression => ((InvocationExpressionSyntax)expression).ArgumentList,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (1)
107if (existingArgument.Expression is InvocationExpressionSyntax { ArgumentList.Arguments: [{ Expression: var nameofArgument }] } invocation &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
289var index = invocation.ArgumentList.Arguments.IndexOf(argument); 1833if (invocation.ArgumentList.Arguments.Count > 0) 1835var argumentExpression = invocation.ArgumentList.Arguments[0].Expression;
Microsoft.DotNet.CodeAnalysis (2)
Analyzers\AppContextDefaultsAnalyzer.cs (2)
73ArgumentSyntax args = call.ArgumentList.Arguments[1]; 114if (call.ArgumentList.Arguments.Count != 2)
Microsoft.Maui.Controls.BindingSourceGen (9)
BindingSourceGenerator.cs (7)
57 && invocation.ArgumentList.Arguments.Count >= 2 58 && invocation.ArgumentList.Arguments[1].Expression is not LiteralExpressionSyntax 59 && invocation.ArgumentList.Arguments[1].Expression is not ObjectCreationExpressionSyntax; 67 && invocation.ArgumentList.Arguments.Count >= 1 68 && invocation.ArgumentList.Arguments[0].Expression is not LiteralExpressionSyntax 69 && invocation.ArgumentList.Arguments[0].Expression is not ObjectCreationExpressionSyntax 167 var argumentList = invocation.ArgumentList.Arguments;
InvocationParser.cs (2)
51 var argumentsList = invocation.ArgumentList.Arguments; 88 var argumentsList = invocation.ArgumentList.Arguments;
Microsoft.ML.InternalCodeAnalyzer (2)
ContractsCheckAnalyzer.cs (1)
108var syntaxArgs = invocation.ArgumentList.Arguments;
ContractsCheckNameofFixProvider.cs (1)
179var newNameofExp = nameofExp.ReplaceNode(nameofExp.ArgumentList.Arguments[0].Expression, exp.WithoutTrivia());
Roslyn.Diagnostics.CSharp.Analyzers (11)
CSharpSymbolDeclaredEventMustBeGeneratedForSourceSymbols.cs (2)
53if (invocationExpression.ArgumentList != null) 55ArgumentSyntax argument = invocationExpression.ArgumentList.Arguments.FirstOrDefault();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (3)
410SimpleNameSyntax { Parent: InvocationExpressionSyntax invocation } => invocation.ArgumentList, 412SimpleNameSyntax { Parent: MemberAccessExpressionSyntax { Parent: InvocationExpressionSyntax invocation } memberAccess } when memberAccess.Name == node => invocation.ArgumentList, 414SimpleNameSyntax { Parent: MemberBindingExpressionSyntax { Parent: InvocationExpressionSyntax invocation } memberBinding } when memberBinding.Name == node => invocation.ArgumentList,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1586argumentList = invocation.ArgumentList;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
602SyntaxKind.InvocationExpression => ((InvocationExpressionSyntax)expression).ArgumentList,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (1)
107if (existingArgument.Expression is InvocationExpressionSyntax { ArgumentList.Arguments: [{ Expression: var nameofArgument }] } invocation &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
289var index = invocation.ArgumentList.Arguments.IndexOf(argument); 1833if (invocation.ArgumentList.Arguments.Count > 0) 1835var argumentExpression = invocation.ArgumentList.Arguments[0].Expression;
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexAnalyzer.cs (1)
174InvocationExpressionSyntax invocation => invocation.ArgumentList?.SpanStart,
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationGenerator.cs (1)
111ArgumentList.Arguments.Count: 0,
System.Windows.Forms.PrivateSourceGenerators (2)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (2)
47ArgumentList.Arguments.Count: <= 2, 70var arguments = invocationExpression.ArgumentList.Arguments;