87 references to AttributeArgument
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (1)
90else if (container.Parent.IsKind(SyntaxKind.AttributeArgument))
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (1)
109else if (container.Parent.IsKind(SyntaxKind.AttributeArgument))
Microsoft.CodeAnalysis.CSharp (2)
Compilation\AttributeSemanticModel.cs (1)
68case SyntaxKind.AttributeArgument:
Syntax\SyntaxFacts.cs (1)
295if (parent2 == null || !(parent2.IsKind(Argument) || parent2.IsKind(AttributeArgument)))
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
400return nameEquals.IsParentKind(SyntaxKind.AttributeArgument); 567case SyntaxKind.AttributeArgument: 639if ((expression.IsParentKind(SyntaxKind.NameEquals) && expression.Parent.IsParentKind(SyntaxKind.AttributeArgument)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
602=> node.IsKind(SyntaxKind.AttributeArgument);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
2119token.Parent.IsParentKind(SyntaxKind.AttributeArgument)) 2127token.Parent.IsParentKind(SyntaxKind.AttributeArgument))
Microsoft.CodeAnalysis.CSharp.Features (2)
ChangeSignature\UnifiedArgumentSyntax.cs (1)
19Debug.Assert(argument.Kind() is SyntaxKind.Argument or SyntaxKind.AttributeArgument);
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
169if (expression.IsParentKind(SyntaxKind.AttributeArgument))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\LocalFunctionTests.cs (5)
618var arg1 = (AttributeArgumentSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.AttributeArgument, occurrence: 1).AsNode(); 622var arg2 = (AttributeArgumentSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.AttributeArgument, occurrence: 2).AsNode(); 626var arg3 = (AttributeArgumentSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.AttributeArgument, occurrence: 3).AsNode(); 671var arg = (AttributeArgumentSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.AttributeArgument, occurrence: 1).AsNode(); 725var arg = (AttributeArgumentSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.AttributeArgument, occurrence: 1).AsNode();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (56)
Parsing\AnonymousFunctionParsingTests.cs (3)
2315N(SyntaxKind.AttributeArgument); 2395N(SyntaxKind.AttributeArgument); 2403N(SyntaxKind.AttributeArgument);
Parsing\CollectionExpressionParsingTests.cs (36)
12019N(SyntaxKind.AttributeArgument); 12091N(SyntaxKind.AttributeArgument); 12437N(SyntaxKind.AttributeArgument); 12504N(SyntaxKind.AttributeArgument); 12571N(SyntaxKind.AttributeArgument); 12654N(SyntaxKind.AttributeArgument); 12751N(SyntaxKind.AttributeArgument); 12826N(SyntaxKind.AttributeArgument); 17203N(SyntaxKind.AttributeArgument); 17211N(SyntaxKind.AttributeArgument); 17231N(SyntaxKind.AttributeArgument); 17280N(SyntaxKind.AttributeArgument); 17288N(SyntaxKind.AttributeArgument); 17308N(SyntaxKind.AttributeArgument); 17436N(SyntaxKind.AttributeArgument); 17444N(SyntaxKind.AttributeArgument); 17464N(SyntaxKind.AttributeArgument); 17472N(SyntaxKind.AttributeArgument); 17521N(SyntaxKind.AttributeArgument); 17529N(SyntaxKind.AttributeArgument); 17549N(SyntaxKind.AttributeArgument); 17557N(SyntaxKind.AttributeArgument); 17685N(SyntaxKind.AttributeArgument); 17693N(SyntaxKind.AttributeArgument); 17713N(SyntaxKind.AttributeArgument); 17767N(SyntaxKind.AttributeArgument); 17775N(SyntaxKind.AttributeArgument); 17795N(SyntaxKind.AttributeArgument); 17928N(SyntaxKind.AttributeArgument); 17936N(SyntaxKind.AttributeArgument); 17956N(SyntaxKind.AttributeArgument); 17964N(SyntaxKind.AttributeArgument); 18018N(SyntaxKind.AttributeArgument); 18026N(SyntaxKind.AttributeArgument); 18046N(SyntaxKind.AttributeArgument); 18054N(SyntaxKind.AttributeArgument);
Parsing\ExpressionParsingTests.cs (1)
6294N(SyntaxKind.AttributeArgument);
Parsing\LambdaAttributeParsingTests.cs (3)
493N(SyntaxKind.AttributeArgument); 3737N(SyntaxKind.AttributeArgument); 4085N(SyntaxKind.AttributeArgument);
Parsing\LambdaParameterParsingTests.cs (4)
3416N(SyntaxKind.AttributeArgument); 3424N(SyntaxKind.AttributeArgument); 3497N(SyntaxKind.AttributeArgument); 3505N(SyntaxKind.AttributeArgument);
Parsing\LambdaReturnTypeParsingTests.cs (4)
5638N(SyntaxKind.AttributeArgument); 5696N(SyntaxKind.AttributeArgument); 5749N(SyntaxKind.AttributeArgument); 5815N(SyntaxKind.AttributeArgument);
Parsing\ScriptParsingTests.cs (1)
3614N(SyntaxKind.AttributeArgument);
Parsing\UsingDirectiveParsingTests.cs (4)
3692N(SyntaxKind.AttributeArgument); 3700N(SyntaxKind.AttributeArgument); 3854N(SyntaxKind.AttributeArgument); 3862N(SyntaxKind.AttributeArgument);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3023case SyntaxKind.AttributeArgument:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (3)
400return nameEquals.IsParentKind(SyntaxKind.AttributeArgument); 567case SyntaxKind.AttributeArgument: 639if ((expression.IsParentKind(SyntaxKind.NameEquals) && expression.Parent.IsParentKind(SyntaxKind.AttributeArgument)) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
602=> node.IsKind(SyntaxKind.AttributeArgument);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
2119token.Parent.IsParentKind(SyntaxKind.AttributeArgument)) 2127token.Parent.IsParentKind(SyntaxKind.AttributeArgument))
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CodeModel\CSharpCodeModelService.cs (4)
525case SyntaxKind.AttributeArgument: 844case SyntaxKind.AttributeArgument: 918case SyntaxKind.AttributeArgument: 2888SyntaxKind.AttributeArgument => Delete(document, (AttributeArgumentSyntax)node),
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
41case SyntaxKind.AttributeArgument: 92case SyntaxKind.AttributeArgument:
LanguageService\CSharpHelpContextService.cs (1)
280else if (token.Parent.Parent.IsKind(SyntaxKind.AttributeArgument))