1 instantiation of AttributeArgumentListSyntax
Microsoft.CodeAnalysis.CSharp (1)
_generated\1\Syntax.xml.Internal.Generated.cs (1)
16159internal override SyntaxNode CreateRed(SyntaxNode? parent, int position) => new CSharp.Syntax.AttributeArgumentListSyntax(this, parent, position);
105 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)
_generated\0\Syntax.xml.Main.Generated.cs (8)
497public virtual TResult? VisitAttributeArgumentList(AttributeArgumentListSyntax node) => this.DefaultVisit(node); 1245public virtual void VisitAttributeArgumentList(AttributeArgumentListSyntax node) => this.DefaultVisit(node); 1990=> node.Update((NameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), (AttributeArgumentListSyntax?)Visit(node.ArgumentList)); 1992public override SyntaxNode? VisitAttributeArgumentList(AttributeArgumentListSyntax node) 4911public static AttributeSyntax Attribute(NameSyntax name, AttributeArgumentListSyntax? argumentList) 4922public static AttributeArgumentListSyntax AttributeArgumentList(SyntaxToken openParenToken, SeparatedSyntaxList<AttributeArgumentSyntax> arguments, SyntaxToken closeParenToken) 4926return (AttributeArgumentListSyntax)Syntax.InternalSyntax.SyntaxFactory.AttributeArgumentList((Syntax.InternalSyntax.SyntaxToken)openParenToken.Node!, arguments.Node.ToGreenSeparatedList<Syntax.InternalSyntax.AttributeArgumentSyntax>(), (Syntax.InternalSyntax.SyntaxToken)closeParenToken.Node!).CreateRed(); 4930public static AttributeArgumentListSyntax AttributeArgumentList(SeparatedSyntaxList<AttributeArgumentSyntax> arguments = default)
_generated\2\Syntax.xml.Syntax.Generated.cs (11)
9933private AttributeArgumentListSyntax? argumentList; 9943public AttributeArgumentListSyntax? ArgumentList => GetRed(ref this.argumentList, 1); 9964public AttributeSyntax Update(NameSyntax name, AttributeArgumentListSyntax? argumentList) 9977public AttributeSyntax WithArgumentList(AttributeArgumentListSyntax? argumentList) => Update(this.Name, argumentList); 9981var argumentList = this.ArgumentList ?? SyntaxFactory.AttributeArgumentList(); 10025public AttributeArgumentListSyntax Update(SyntaxToken openParenToken, SeparatedSyntaxList<AttributeArgumentSyntax> arguments, SyntaxToken closeParenToken) 10029var newNode = SyntaxFactory.AttributeArgumentList(openParenToken, arguments, closeParenToken); 10037public AttributeArgumentListSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(openParenToken, this.Arguments, this.CloseParenToken); 10038public AttributeArgumentListSyntax WithArguments(SeparatedSyntaxList<AttributeArgumentSyntax> arguments) => Update(this.OpenParenToken, arguments, this.CloseParenToken); 10039public AttributeArgumentListSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.OpenParenToken, this.Arguments, closeParenToken); 10041public AttributeArgumentListSyntax AddArguments(params AttributeArgumentSyntax[] items) => WithArguments(this.Arguments.AddRange(items));
Binder\Binder_Attributes.cs (2)
181var argumentListOpt = node.ArgumentList; 452AttributeArgumentListSyntax? attributeArgumentList,
Symbols\Attributes\AttributeData.cs (1)
476var argList = nodeOpt.ArgumentList;
Syntax\SyntaxFactory.cs (2)
1919public static AttributeArgumentListSyntax? ParseAttributeArgumentList(string text, int offset = 0, ParseOptions? options = null, bool consumeFullText = true) 1933return CreateRed<AttributeArgumentListSyntax>(node, lexer.Options);
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AttributeArgumentSyntaxExtensions.cs (1)
33if (argument.Parent is not AttributeArgumentListSyntax argumentList)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
720AttributeArgumentListSyntax n => (n.OpenParenToken, n.CloseParenToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
271var attributeArgumentList = (AttributeArgumentListSyntax)parent;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1124=> ((AttributeArgumentListSyntax)argumentList).Arguments;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (13)
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\AddExplicitCast\CSharpAddExplicitCastCodeFixProvider.cs (1)
79&& targetAttributeArgument.Parent is AttributeArgumentListSyntax attributeArgumentList
src\roslyn\src\Analyzers\CSharp\CodeFixes\AddParameter\CSharpAddParameterCodeFixProvider.cs (1)
27AttributeArgumentListSyntax,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
72var attributeArguments = GenerateAttributeArgumentList(attribute, reusableSyntax); 78private static AttributeArgumentListSyntax? GenerateAttributeArgumentList(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SemanticModelExtensions.cs (1)
46AttributeArgumentListSyntax argumentList,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
213AttributeArgumentListSyntax attributeArgumentList => InferTypeInAttributeArgumentList(attributeArgumentList, token), 545private IEnumerable<TypeInferenceInfo> InferTypeInAttributeArgumentList(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken) 929private static int GetArgumentListIndex(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken)
Microsoft.CodeAnalysis.CSharp.Features (30)
ChangeSignature\CSharpChangeSignatureService.cs (2)
566private AttributeArgumentListSyntax UpdateAttributeArgumentList( 570AttributeArgumentListSyntax 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)
93Parent: 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\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\AddExplicitCast\CSharpAddExplicitCastCodeFixProvider.cs (1)
79&& targetAttributeArgument.Parent is AttributeArgumentListSyntax attributeArgumentList
src\roslyn\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.Workspaces (17)
CodeGeneration\CSharpSyntaxGenerator.cs (6)
950private static AttributeArgumentListSyntax? AsAttributeArgumentList(IEnumerable<SyntaxNode>? arguments) 1131var newArgumentList = AsAttributeArgumentList(attributeArguments); 1133var existingArgumentList = GetAttributeArgumentList(declaration); 1149private static AttributeArgumentListSyntax? GetAttributeArgumentList(SyntaxNode declaration) 1169private static SyntaxNode WithAttributeArgumentList(SyntaxNode declaration, AttributeArgumentListSyntax? argList) 3155if (declaration.Parent != null && ((AttributeArgumentListSyntax)declaration.Parent).Arguments.Count == 1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AttributeArgumentSyntaxExtensions.cs (1)
33if (argument.Parent is not AttributeArgumentListSyntax argumentList)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
720AttributeArgumentListSyntax n => (n.OpenParenToken, n.CloseParenToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
271var attributeArgumentList = (AttributeArgumentListSyntax)parent;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1124=> ((AttributeArgumentListSyntax)argumentList).Arguments;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
72var attributeArguments = GenerateAttributeArgumentList(attribute, reusableSyntax); 78private static AttributeArgumentListSyntax? GenerateAttributeArgumentList(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SemanticModelExtensions.cs (1)
46AttributeArgumentListSyntax argumentList,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
213AttributeArgumentListSyntax attributeArgumentList => InferTypeInAttributeArgumentList(attributeArgumentList, token), 545private IEnumerable<TypeInferenceInfo> InferTypeInAttributeArgumentList(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken) 929private static int GetArgumentListIndex(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken)
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
566AttributeArgumentListSyntax updatedArgList = attribute.ArgumentList.WithArguments(
QuarantineTools.Tests (2)
ActiveIssueTests.cs (1)
426var attrArgs = string.IsNullOrWhiteSpace(issueUrl)
QuarantineScriptTests.cs (1)
370var attrArgs = string.IsNullOrWhiteSpace(issueUrl)
Roslyn.Diagnostics.CSharp.Analyzers (11)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AttributeArgumentSyntaxExtensions.cs (1)
33if (argument.Parent is not AttributeArgumentListSyntax argumentList)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
720AttributeArgumentListSyntax n => (n.OpenParenToken, n.CloseParenToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
271var attributeArgumentList = (AttributeArgumentListSyntax)parent;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1124=> ((AttributeArgumentListSyntax)argumentList).Arguments;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
72var attributeArguments = GenerateAttributeArgumentList(attribute, reusableSyntax); 78private static AttributeArgumentListSyntax? GenerateAttributeArgumentList(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SemanticModelExtensions.cs (1)
46AttributeArgumentListSyntax argumentList,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
213AttributeArgumentListSyntax attributeArgumentList => InferTypeInAttributeArgumentList(attributeArgumentList, token), 545private IEnumerable<TypeInferenceInfo> InferTypeInAttributeArgumentList(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken) 929private static int GetArgumentListIndex(AttributeArgumentListSyntax attributeArgumentList, SyntaxToken previousToken)