45 references to Target
Microsoft.CodeAnalysis.CSharp (12)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1984=> node.Update(VisitToken(node.OpenBracketToken), (AttributeTargetSpecifierSyntax?)Visit(node.Target), VisitList(node.Attributes), VisitToken(node.CloseBracketToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (4)
9861if (openBracketToken != this.OpenBracketToken || target != this.Target || attributes != this.Attributes || closeBracketToken != this.CloseBracketToken) 9871public AttributeListSyntax WithOpenBracketToken(SyntaxToken openBracketToken) => Update(openBracketToken, this.Target, this.Attributes, this.CloseBracketToken); 9873public AttributeListSyntax WithAttributes(SeparatedSyntaxList<AttributeSyntax> attributes) => Update(this.OpenBracketToken, this.Target, attributes, this.CloseBracketToken); 9874public AttributeListSyntax WithCloseBracketToken(SyntaxToken closeBracketToken) => Update(this.OpenBracketToken, this.Target, this.Attributes, closeBracketToken);
Declarations\DeclarationTreeBuilder.cs (1)
727if (attributeListSyntax.Target?.Identifier.ToAttributeLocation() == AttributeLocation.Method)
Symbols\Symbol_Attributes.cs (1)
698AttributeTargetSpecifierSyntax targetOpt = attributeList.Target;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (3)
169Debug.Assert(attributeDeclarationSyntax.Target is object); 181MessageID.IDS_FeaturePrimaryConstructors.CheckFeatureAvailability(diagnostics, attributeDeclarationSyntax, attributeDeclarationSyntax.Target.Identifier.GetLocation()); 187SyntaxToken target = attributeDeclarationSyntax.Target.Identifier;
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
295if (attribute.Target?.GetAttributeLocation() == AttributeLocation.Field) 301attribute.Target.Location);
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
20switch (attributeList.Target?.Identifier.Kind())
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (5)
336if (parent.Target != null && 337(parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.AssemblyKeyword) || 338parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.ModuleKeyword))) 398if (parent.Target != null && 399parent.Target.Identifier.Kind() is SyntaxKind.AssemblyKeyword or SyntaxKind.ModuleKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1156attributeList.Target?.Identifier.Kind() == attributeTarget;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
460if (attributeList.Target == null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
530if (attributeList is { Target.Identifier: var identifier })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
127if (attributeList.Target is { Identifier.RawKind: var kind })
Microsoft.CodeAnalysis.CSharp.Features (6)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (2)
89attributeList.Target != null && 90attributeList.Target.Identifier.Kind() == SyntaxKind.AssemblyKeyword;
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
103var methodTargetingAttributes = typeDeclaration.AttributeLists.Where(list => list.Target?.Identifier.ValueText == "method");
EditAndContinue\SyntaxComparer.cs (1)
1508return ((AttributeListSyntax)node).Target;
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
20switch (attributeList.Target?.Identifier.Kind())
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
460if (attributeList.Target == null)
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1019=> list.Target?.Identifier.IsKind(SyntaxKind.ReturnKeyword) ?? false;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (5)
336if (parent.Target != null && 337(parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.AssemblyKeyword) || 338parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.ModuleKeyword))) 398if (parent.Target != null && 399parent.Target.Identifier.Kind() is SyntaxKind.AssemblyKeyword or SyntaxKind.ModuleKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1156attributeList.Target?.Identifier.Kind() == attributeTarget;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
530if (attributeList is { Target.Identifier: var identifier })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
127if (attributeList.Target is { Identifier.RawKind: var kind })
Roslyn.Diagnostics.CSharp.Analyzers (8)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (5)
336if (parent.Target != null && 337(parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.AssemblyKeyword) || 338parent.Target.Identifier.IsKindOrHasMatchingText(SyntaxKind.ModuleKeyword))) 398if (parent.Target != null && 399parent.Target.Identifier.Kind() is SyntaxKind.AssemblyKeyword or SyntaxKind.ModuleKeyword &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1156attributeList.Target?.Identifier.Kind() == attributeTarget;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
530if (attributeList is { Target.Identifier: var identifier })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
127if (attributeList.Target is { Identifier.RawKind: var kind })