28 references to WithArguments
Microsoft.CodeAnalysis.CSharp (7)
Syntax.xml.Syntax.Generated.cs (7)
2525
public InvocationExpressionSyntax AddArgumentListArguments(params ArgumentSyntax[] items) => WithArgumentList(this.ArgumentList.
WithArguments
(this.ArgumentList.Arguments.AddRange(items)));
2657
internal override BaseArgumentListSyntax WithArgumentsCore(SeparatedSyntaxList<ArgumentSyntax> arguments) =>
WithArguments
(arguments);
2662
public new ArgumentListSyntax AddArguments(params ArgumentSyntax[] items) =>
WithArguments
(this.Arguments.AddRange(items));
3622
public new ImplicitObjectCreationExpressionSyntax AddArgumentListArguments(params ArgumentSyntax[] items) => WithArgumentList(this.ArgumentList.
WithArguments
(this.ArgumentList.Arguments.AddRange(items)));
3700
return WithArgumentList(argumentList.
WithArguments
(argumentList.Arguments.AddRange(items)));
11625
public PrimaryConstructorBaseTypeSyntax AddArgumentListArguments(params ArgumentSyntax[] items) => WithArgumentList(this.ArgumentList.
WithArguments
(this.ArgumentList.Arguments.AddRange(items)));
12884
public ConstructorInitializerSyntax AddArgumentListArguments(params ArgumentSyntax[] items) => WithArgumentList(this.ArgumentList.
WithArguments
(this.ArgumentList.Arguments.AddRange(items)));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\ArgumentFixer.cs (1)
24
=> oldArgumentList.
WithArguments
([.. newArguments]);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
112
var newArgList = currentInvocation.ArgumentList.
WithArguments
(newArgumentsList);
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (1)
69
castOrSelectInvocation.ArgumentList.
WithArguments
([]));
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
176
return argumentList.
WithArguments
(SeparatedList<ArgumentSyntax>(finalArgumentsWithSeparators));
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
120
invocation.ArgumentList.
WithArguments
(arguments));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Semantics\PrimaryConstructorTests.cs (3)
2163
speculativePrimaryInitializer = baseWithargs.WithArgumentList(baseWithargs.ArgumentList.
WithArguments
(baseWithargs.ArgumentList.Arguments.RemoveAt(1)));
2315
speculativePrimaryInitializer = baseWithargs.WithArgumentList(baseWithargs.ArgumentList.
WithArguments
(baseWithargs.ArgumentList.Arguments.RemoveAt(1)));
2479
baseWithargs.WithArgumentList(baseWithargs.ArgumentList.
WithArguments
(baseWithargs.ArgumentList.Arguments.RemoveAt(1)));
Semantics\RecordTests.cs (2)
22379
speculativePrimaryInitializer = baseWithargs.WithArgumentList(baseWithargs.ArgumentList.
WithArguments
(baseWithargs.ArgumentList.Arguments.RemoveAt(1)));
22531
speculativePrimaryInitializer = baseWithargs.WithArgumentList(baseWithargs.ArgumentList.
WithArguments
(baseWithargs.ArgumentList.Arguments.RemoveAt(1)));
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
193
invocation.ArgumentList.
WithArguments
(
IntroduceParameter\CSharpIntroduceParameterCodeRefactoringProvider.cs (1)
41
=> ((ArgumentListSyntax)argumentList).
WithArguments
(arguments);
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\ArgumentFixer.cs (1)
24
=> oldArgumentList.
WithArguments
([.. newArguments]);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
112
var newArgList = currentInvocation.ArgumentList.
WithArguments
(newArgumentsList);
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (1)
69
castOrSelectInvocation.ArgumentList.
WithArguments
([]));
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
176
return argumentList.
WithArguments
(SeparatedList<ArgumentSyntax>(finalArgumentsWithSeparators));
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
120
invocation.ArgumentList.
WithArguments
(arguments));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\RecordStructTests.cs (1)
10848
baseWithargs.WithArgumentList(baseWithargs.ArgumentList.
WithArguments
(baseWithargs.ArgumentList.Arguments.RemoveAt(1)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.cs (1)
11657
var newNode = node.WithOpenParenToken(node.OpenParenToken).
WithArguments
(node.Arguments).WithCloseParenToken(node.CloseParenToken);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Simplification\CSharpSimplificationService.Expander.cs (1)
1114
originalNode.ArgumentList.
WithArguments
(arguments));
Simplification\Reducers\CSharpExtensionMethodReducer.cs (1)
111
var rewrittenArgumentList = argumentList.
WithArguments
(newArguments);