Base:
property
ArgumentList
Microsoft.CodeAnalysis.CSharp.Syntax.BaseObjectCreationExpressionSyntax.ArgumentList
51 references to ArgumentList
Microsoft.CodeAnalysis.CSharp (10)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1695
=> node.Update(VisitToken(node.NewKeyword), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ArgumentListSyntax?)Visit(node.
ArgumentList
), (InitializerExpressionSyntax?)Visit(node.Initializer));
_generated\2\Syntax.xml.Syntax.Generated.cs (5)
3678
if (newKeyword != this.NewKeyword || type != this.Type || argumentList != this.
ArgumentList
|| initializer != this.Initializer)
3689
public new ObjectCreationExpressionSyntax WithNewKeyword(SyntaxToken newKeyword) => Update(newKeyword, this.Type, this.
ArgumentList
, this.Initializer);
3690
public ObjectCreationExpressionSyntax WithType(TypeSyntax type) => Update(this.NewKeyword, type, this.
ArgumentList
, this.Initializer);
3694
public new ObjectCreationExpressionSyntax WithInitializer(InitializerExpressionSyntax? initializer) => Update(this.NewKeyword, this.Type, this.
ArgumentList
, initializer);
3699
var argumentList = this.
ArgumentList
?? SyntaxFactory.ArgumentList();
Binder\Binder_Expressions.cs (4)
5507
BindArgumentsAndNames(node.
ArgumentList
, diagnostics, analyzedArguments, isDelegateCreation: true);
5689
BindArgumentsAndNames(node.
ArgumentList
, diagnostics, analyzedArguments, allowArglist: true);
7071
BindArgumentsAndNames(node.
ArgumentList
, diagnostics, analyzedArguments);
7229
BindArgumentsAndNames(node.
ArgumentList
, diagnostics, analyzedArguments);
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (4)
235
if (objectCreation.
ArgumentList
is { Arguments.Count: 1 })
238
var argumentType = semanticModel.GetTypeInfo(objectCreation.
ArgumentList
.Arguments[0].Expression, cancellationToken).Type;
249
AddArgumentsInReverse(preMatchesInReverse, objectCreation.
ArgumentList
.Arguments, useSpread: true);
252
else if (objectCreation.
ArgumentList
is null or { Arguments.Count: 0 })
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
1037
if (objectCreation.
ArgumentList
is { Arguments.Count: > 0 })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1617
argumentList = objectCreationExpression.
ArgumentList
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
603
SyntaxKind.ObjectCreationExpression => ((ObjectCreationExpressionSyntax)expression).
ArgumentList
,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (3)
93
if (objectCreationExpression.
ArgumentList
!= null &&
94
!objectCreationExpression.
ArgumentList
.CloseParenToken.IsMissing)
98
arguments = GetArguments(objectCreationExpression.
ArgumentList
.Arguments);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
73
objectCreation.
ArgumentList
?? ArgumentList(),
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\UseInitializerHelpers.cs (2)
20
if (baseObjectCreation is ObjectCreationExpressionSyntax {
ArgumentList
.Arguments.Count: 0 } objectCreation)
23
.WithType(objectCreation.Type.WithTrailingTrivia(objectCreation.
ArgumentList
.GetTrailingTrivia()))
Microsoft.CodeAnalysis.CSharp.Features (23)
ChangeSignature\CSharpChangeSignatureService.cs (1)
174
var argumentList = matchingNode is ObjectCreationExpressionSyntax objCreation ? objCreation.
ArgumentList
ConvertLinq\ConvertForEachToLinqQuery\ToToListConverter.cs (2)
33
(objectCreationExpression.
ArgumentList
== null || !objectCreationExpression.
ArgumentList
.Arguments.Any()) &&
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (2)
214
if (objectionCreationExpression.
ArgumentList
!= null)
217
AddArgumentTerms(objectionCreationExpression.
ArgumentList
, terms, ref flags);
GenerateType\CSharpGenerateTypeService.cs (5)
363
if (objectCreationExpressionOpt.
ArgumentList
!= null)
365
if (objectCreationExpressionOpt.
ArgumentList
.CloseParenToken.IsMissing)
370
objectCreationExpressionOpt.
ArgumentList
.Arguments is [{ Expression: (kind: not SyntaxKind.DeclarationExpression) expression }])
485
if (objectCreationExpression != null && objectCreationExpression.
ArgumentList
!= null)
487
argumentList = [.. objectCreationExpression.
ArgumentList
.Arguments];
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (2)
61
var (newKeyword, argumentList) = objectCreationExpression.
ArgumentList
is null
63
: (objectCreationExpression.NewKeyword, objectCreationExpression.
ArgumentList
);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (4)
235
if (objectCreation.
ArgumentList
is { Arguments.Count: 1 })
238
var argumentType = semanticModel.GetTypeInfo(objectCreation.
ArgumentList
.Arguments[0].Expression, cancellationToken).Type;
249
AddArgumentsInReverse(preMatchesInReverse, objectCreation.
ArgumentList
.Arguments, useSpread: true);
252
else if (objectCreation.
ArgumentList
is null or { Arguments.Count: 0 })
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
1037
if (objectCreation.
ArgumentList
is { Arguments.Count: > 0 })
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (3)
93
if (objectCreationExpression.
ArgumentList
!= null &&
94
!objectCreationExpression.
ArgumentList
.CloseParenToken.IsMissing)
98
arguments = GetArguments(objectCreationExpression.
ArgumentList
.Arguments);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
73
objectCreation.
ArgumentList
?? ArgumentList(),
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\UseInitializerHelpers.cs (2)
20
if (baseObjectCreation is ObjectCreationExpressionSyntax {
ArgumentList
.Arguments.Count: 0 } objectCreation)
23
.WithType(objectCreation.Type.WithTrailingTrivia(objectCreation.
ArgumentList
.GetTrailingTrivia()))
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1617
argumentList = objectCreationExpression.
ArgumentList
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
603
SyntaxKind.ObjectCreationExpression => ((ObjectCreationExpressionSyntax)expression).
ArgumentList
,
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1617
argumentList = objectCreationExpression.
ArgumentList
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
603
SyntaxKind.ObjectCreationExpression => ((ObjectCreationExpressionSyntax)expression).
ArgumentList
,
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexAnalyzer.cs (1)
175
ObjectCreationExpressionSyntax creation => creation.
ArgumentList
?.SpanStart,