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