1 instantiation of AttributeArgumentListSyntax
Microsoft.CodeAnalysis.CSharp (1)
Syntax.xml.Internal.Generated.cs (1)
16082internal override SyntaxNode CreateRed(SyntaxNode? parent, int position) => new CSharp.Syntax.AttributeArgumentListSyntax(this, parent, position);
124 references to AttributeArgumentListSyntax
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (1)
472if (argument.Parent is not AttributeArgumentListSyntax argumentList)
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (1)
194if (argument?.Parent is not AttributeArgumentListSyntax argumentList)
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Attributes.cs (2)
181var argumentListOpt = node.ArgumentList; 450AttributeArgumentListSyntax? attributeArgumentList,
Symbols\Attributes\AttributeData.cs (1)
476var argList = nodeOpt.ArgumentList;
Syntax.xml.Main.Generated.cs (8)
493public virtual TResult? VisitAttributeArgumentList(AttributeArgumentListSyntax node) => this.DefaultVisit(node); 1237public virtual void VisitAttributeArgumentList(AttributeArgumentListSyntax node) => this.DefaultVisit(node); 1978=> node.Update((NameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), (AttributeArgumentListSyntax?)Visit(node.ArgumentList)); 1980public override SyntaxNode? VisitAttributeArgumentList(AttributeArgumentListSyntax node) 4885public static AttributeSyntax Attribute(NameSyntax name, AttributeArgumentListSyntax? argumentList) 4896public static AttributeArgumentListSyntax AttributeArgumentList(SyntaxToken openParenToken, SeparatedSyntaxList<AttributeArgumentSyntax> arguments, SyntaxToken closeParenToken) 4900return (AttributeArgumentListSyntax)Syntax.InternalSyntax.SyntaxFactory.AttributeArgumentList((Syntax.InternalSyntax.SyntaxToken)openParenToken.Node!, arguments.Node.ToGreenSeparatedList<Syntax.InternalSyntax.AttributeArgumentSyntax>(), (Syntax.InternalSyntax.SyntaxToken)closeParenToken.Node!).CreateRed(); 4904public static AttributeArgumentListSyntax AttributeArgumentList(SeparatedSyntaxList<AttributeArgumentSyntax> arguments = default)
Syntax.xml.Syntax.Generated.cs (11)
9887private AttributeArgumentListSyntax? argumentList; 9897public AttributeArgumentListSyntax? ArgumentList => GetRed(ref this.argumentList, 1); 9918public AttributeSyntax Update(NameSyntax name, AttributeArgumentListSyntax? argumentList) 9931public AttributeSyntax WithArgumentList(AttributeArgumentListSyntax? argumentList) => Update(this.Name, argumentList); 9935var argumentList = this.ArgumentList ?? SyntaxFactory.AttributeArgumentList(); 9979public AttributeArgumentListSyntax Update(SyntaxToken openParenToken, SeparatedSyntaxList<AttributeArgumentSyntax> arguments, SyntaxToken closeParenToken) 9983var newNode = SyntaxFactory.AttributeArgumentList(openParenToken, arguments, closeParenToken); 9991public AttributeArgumentListSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(openParenToken, this.Arguments, this.CloseParenToken); 9992public AttributeArgumentListSyntax WithArguments(SeparatedSyntaxList<AttributeArgumentSyntax> arguments) => Update(this.OpenParenToken, arguments, this.CloseParenToken); 9993public AttributeArgumentListSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.OpenParenToken, this.Arguments, closeParenToken); 9995public AttributeArgumentListSyntax AddArguments(params AttributeArgumentSyntax[] items) => WithArguments(this.Arguments.AddRange(items));
Syntax\SyntaxFactory.cs (2)
1889public static AttributeArgumentListSyntax? ParseAttributeArgumentList(string text, int offset = 0, ParseOptions? options = null, bool consumeFullText = true) 1903return CreateRed<AttributeArgumentListSyntax>(node, lexer.Options);
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AttributeArgumentSyntaxExtensions.cs (1)
33if (argument.Parent is not AttributeArgumentListSyntax argumentList)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
720AttributeArgumentListSyntax n => (n.OpenParenToken, n.CloseParenToken),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
268var attributeArgumentList = (AttributeArgumentListSyntax)parent;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1144=> ((AttributeArgumentListSyntax)argumentList).Arguments;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\AttributeArgumentFixer.cs (5)
15private sealed class AttributeArgumentFixer : Fixer<AttributeArgumentSyntax, AttributeArgumentListSyntax, AttributeSyntax> 23protected override AttributeArgumentListSyntax GenerateNewArgumentList(AttributeArgumentListSyntax oldArgumentList, ArrayBuilder<AttributeArgumentSyntax> newArguments) 26protected override SeparatedSyntaxList<AttributeArgumentSyntax> GetArgumentsOfArgumentList(AttributeArgumentListSyntax argumentList) 29protected override SymbolInfo GetSpeculativeSymbolInfo(SemanticModel semanticModel, AttributeArgumentListSyntax newArgumentList)
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\CSharpAddExplicitCastCodeFixProvider.cs (1)
79&& targetAttributeArgument.Parent is AttributeArgumentListSyntax attributeArgumentList
src\Analyzers\CSharp\CodeFixes\AddParameter\CSharpAddParameterCodeFixProvider.cs (1)
27AttributeArgumentListSyntax,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
72var attributeArguments = GenerateAttributeArgumentList( 79private static AttributeArgumentListSyntax? GenerateAttributeArgumentList(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SemanticModelExtensions.cs (1)
46AttributeArgumentListSyntax argumentList,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
209AttributeArgumentListSyntax attributeArgumentList => InferTypeInAttributeArgumentList(attributeArgumentList, token), 541private IEnumerable<TypeInferenceInfo> InferTypeInAttributeArgumentList(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken) 925private static int GetArgumentListIndex(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests.cs (2)
773var result = SyntaxFactory.ParseAttributeArgumentList("[]"); 783var result = SyntaxFactory.ParseAttributeArgumentList("[]", consumeFullText: false);
Microsoft.CodeAnalysis.CSharp.Features (30)
ChangeSignature\CSharpChangeSignatureService.cs (2)
568private AttributeArgumentListSyntax UpdateAttributeArgumentList( 572AttributeArgumentListSyntax argumentList,
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (3)
158var attributeArguments = CreateAttributeArguments(targetSymbol, diagnostic, isAssemblyAttribute); 177private static AttributeArgumentListSyntax CreateAttributeArguments(ISymbol targetSymbol, Diagnostic diagnostic, bool isAssemblyAttribute) 191var attributeArgumentList = AttributeArgumentList().AddArguments(categoryArgument, ruleIdArgument, justificationArgument);
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (4)
73if (token.Parent!.Parent is not AttributeSyntax attributeSyntax || token.Parent is not AttributeArgumentListSyntax attributeArgumentList) 111if (token.Kind() == SyntaxKind.CommaToken && token.Parent is AttributeArgumentListSyntax argumentList) 133if (token.Kind() == SyntaxKind.CommaToken && token.Parent is AttributeArgumentListSyntax argumentList) 204private static ISet<string> GetExistingNamedParameters(AttributeArgumentListSyntax argumentList, int position)
InlineHints\CSharpInlineParameterNameHintsService.cs (2)
37else if (node is AttributeArgumentListSyntax attributeArgumentList) 46AttributeArgumentListSyntax argumentList,
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (1)
102Parent: AttributeArgumentListSyntax
SignatureHelp\AttributeSignatureHelpProvider.cs (1)
61token.Parent is AttributeArgumentListSyntax &&
SignatureHelp\SignatureHelpUtilities.cs (6)
22private static readonly Func<AttributeArgumentListSyntax, SyntaxToken> s_getAttributeArgumentListOpenToken = list => list.OpenParenToken; 27private static readonly Func<AttributeArgumentListSyntax, SyntaxToken> s_getAttributeArgumentListCloseToken = list => list.CloseParenToken; 35private static readonly Func<AttributeArgumentListSyntax, SyntaxNodeOrTokenList> s_getAttributeArgumentListArgumentsWithSeparators = 44private static readonly Func<AttributeArgumentListSyntax, IEnumerable<string?>> s_getAttributeArgumentListNames = 78internal static SignatureHelpState? GetSignatureHelpState(AttributeArgumentListSyntax argumentList, int position) 97internal static TextSpan GetSignatureHelpSpan(AttributeArgumentListSyntax argumentList)
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\AttributeArgumentFixer.cs (5)
15private sealed class AttributeArgumentFixer : Fixer<AttributeArgumentSyntax, AttributeArgumentListSyntax, AttributeSyntax> 23protected override AttributeArgumentListSyntax GenerateNewArgumentList(AttributeArgumentListSyntax oldArgumentList, ArrayBuilder<AttributeArgumentSyntax> newArguments) 26protected override SeparatedSyntaxList<AttributeArgumentSyntax> GetArgumentsOfArgumentList(AttributeArgumentListSyntax argumentList) 29protected override SymbolInfo GetSpeculativeSymbolInfo(SemanticModel semanticModel, AttributeArgumentListSyntax newArgumentList)
src\Analyzers\CSharp\CodeFixes\AddExplicitCast\CSharpAddExplicitCastCodeFixProvider.cs (1)
79&& targetAttributeArgument.Parent is AttributeArgumentListSyntax attributeArgumentList
src\Analyzers\CSharp\CodeFixes\AddParameter\CSharpAddParameterCodeFixProvider.cs (1)
27AttributeArgumentListSyntax,
UseNamedArguments\CSharpUseNamedArgumentsCodeRefactoringProvider.cs (4)
81BaseAnalyzer<AttributeArgumentSyntax, AttributeArgumentListSyntax> 86protected override SeparatedSyntaxList<AttributeArgumentSyntax> GetArguments(AttributeArgumentListSyntax argumentList) 89protected override AttributeArgumentListSyntax WithArguments( 90AttributeArgumentListSyntax argumentList, IEnumerable<AttributeArgumentSyntax> namedArguments, IEnumerable<SyntaxToken> separators)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Generated\Syntax.Test.xml.Generated.cs (6)
10835=> SyntaxFactory.Attribute(GenerateIdentifierName(), default(AttributeArgumentListSyntax)); 10837private static AttributeArgumentListSyntax GenerateAttributeArgumentList() 13063var node = GenerateAttributeArgumentList(); 13068var newNode = node.WithOpenParenToken(node.OpenParenToken).WithArguments(node.Arguments).WithCloseParenToken(node.CloseParenToken); 18397var oldNode = GenerateAttributeArgumentList(); 18413var oldNode = GenerateAttributeArgumentList();
Syntax\SyntaxFactoryTests.cs (1)
690var attrArgList = SyntaxFactory.ParseAttributeArgumentList("", options: parseOptions);
Microsoft.CodeAnalysis.CSharp.Workspaces (17)
CodeGeneration\CSharpSyntaxGenerator.cs (6)
963private static AttributeArgumentListSyntax? AsAttributeArgumentList(IEnumerable<SyntaxNode>? arguments) 1144var newArgumentList = AsAttributeArgumentList(attributeArguments); 1146var existingArgumentList = GetAttributeArgumentList(declaration); 1162private static AttributeArgumentListSyntax? GetAttributeArgumentList(SyntaxNode declaration) 1182private static SyntaxNode WithAttributeArgumentList(SyntaxNode declaration, AttributeArgumentListSyntax? argList) 3165if (declaration.Parent != null && ((AttributeArgumentListSyntax)declaration.Parent).Arguments.Count == 1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AttributeArgumentSyntaxExtensions.cs (1)
33if (argument.Parent is not AttributeArgumentListSyntax argumentList)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
720AttributeArgumentListSyntax n => (n.OpenParenToken, n.CloseParenToken),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
268var attributeArgumentList = (AttributeArgumentListSyntax)parent;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1144=> ((AttributeArgumentListSyntax)argumentList).Arguments;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
72var attributeArguments = GenerateAttributeArgumentList( 79private static AttributeArgumentListSyntax? GenerateAttributeArgumentList(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SemanticModelExtensions.cs (1)
46AttributeArgumentListSyntax argumentList,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
209AttributeArgumentListSyntax attributeArgumentList => InferTypeInAttributeArgumentList(attributeArgumentList, token), 541private IEnumerable<TypeInferenceInfo> InferTypeInAttributeArgumentList(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken) 925private static int GetArgumentListIndex(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken)
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
554AttributeArgumentListSyntax updatedArgList = attribute.ArgumentList.WithArguments(
Microsoft.VisualStudio.LanguageServices.CSharp (11)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (2)
99private bool CompareAttributeArguments(AttributeArgumentListSyntax oldAttributeArguments, AttributeArgumentListSyntax newAttributeArguments)
CodeModel\CSharpCodeModelService.cs (9)
1712var argumentList = attribute.ArgumentList; 1726var argumentList = attribute.ArgumentList; 1727var parsedArgumentList = SyntaxFactory.ParseAttributeArgumentList("(" + value + ")"); 1732var newArgumentList = argumentList != null 2817var argumentList = node.FirstAncestorOrSelf<AttributeArgumentListSyntax>(); 2819var newArgumentList = argumentList.RemoveNode(node, SyntaxRemoveOptions.KeepNoTrivia); 3323var argumentList = attribute.ArgumentList; 3325AttributeArgumentListSyntax newArgumentList;
QuarantineTools.Tests (1)
QuarantineScriptTests.cs (1)
370var attrArgs = string.IsNullOrWhiteSpace(issueUrl)
Roslyn.Diagnostics.CSharp.Analyzers (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AttributeArgumentSyntaxExtensions.cs (1)
33if (argument.Parent is not AttributeArgumentListSyntax argumentList)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
720AttributeArgumentListSyntax n => (n.OpenParenToken, n.CloseParenToken),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
268var attributeArgumentList = (AttributeArgumentListSyntax)parent;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1144=> ((AttributeArgumentListSyntax)argumentList).Arguments;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
72var attributeArguments = GenerateAttributeArgumentList( 79private static AttributeArgumentListSyntax? GenerateAttributeArgumentList(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SemanticModelExtensions.cs (1)
46AttributeArgumentListSyntax argumentList,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
209AttributeArgumentListSyntax attributeArgumentList => InferTypeInAttributeArgumentList(attributeArgumentList, token), 541private IEnumerable<TypeInferenceInfo> InferTypeInAttributeArgumentList(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken) 925private static int GetArgumentListIndex(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken)