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