20 references to TargetToken
Microsoft.CodeAnalysis.CSharp (8)
Syntax.xml.Main.Generated.cs (1)
2245
=> node.Update(VisitToken(node.HashToken), VisitToken(node.NullableKeyword), VisitToken(node.SettingToken), VisitToken(node.
TargetToken
), VisitToken(node.EndOfDirectiveToken), node.IsActive);
Syntax.xml.Syntax.Generated.cs (6)
16750
if (hashToken != this.HashToken || nullableKeyword != this.NullableKeyword || settingToken != this.SettingToken || targetToken != this.
TargetToken
|| endOfDirectiveToken != this.EndOfDirectiveToken)
16761
public new NullableDirectiveTriviaSyntax WithHashToken(SyntaxToken hashToken) => Update(hashToken, this.NullableKeyword, this.SettingToken, this.
TargetToken
, this.EndOfDirectiveToken, this.IsActive);
16762
public NullableDirectiveTriviaSyntax WithNullableKeyword(SyntaxToken nullableKeyword) => Update(this.HashToken, nullableKeyword, this.SettingToken, this.
TargetToken
, this.EndOfDirectiveToken, this.IsActive);
16763
public NullableDirectiveTriviaSyntax WithSettingToken(SyntaxToken settingToken) => Update(this.HashToken, this.NullableKeyword, settingToken, this.
TargetToken
, this.EndOfDirectiveToken, this.IsActive);
16766
public new NullableDirectiveTriviaSyntax WithEndOfDirectiveToken(SyntaxToken endOfDirectiveToken) => Update(this.HashToken, this.NullableKeyword, this.SettingToken, this.
TargetToken
, endOfDirectiveToken, this.IsActive);
16767
public NullableDirectiveTriviaSyntax WithIsActive(bool isActive) => Update(this.HashToken, this.NullableKeyword, this.SettingToken, this.
TargetToken
, this.EndOfDirectiveToken, isActive);
Syntax\NullableContextStateMap.cs (1)
162
var context = nn.
TargetToken
.Kind() switch
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (3)
121
if (!directive.
TargetToken
.IsKind(SyntaxKind.None))
129
if (directive.
TargetToken
.IsKind(SyntaxKind.AnnotationsKeyword))
133
else if (directive.
TargetToken
.IsKind(SyntaxKind.WarningsKeyword))
Microsoft.CodeAnalysis.CSharp.Features (5)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (2)
176
else if (leadingDirective.SettingToken.IsKind(SyntaxKind.RestoreKeyword) && leadingDirective.
TargetToken
.IsKind(SyntaxKind.None))
245
&& nullableDirective.
TargetToken
.IsKind(SyntaxKind.None))
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (3)
121
if (!directive.
TargetToken
.IsKind(SyntaxKind.None))
129
if (directive.
TargetToken
.IsKind(SyntaxKind.AnnotationsKeyword))
133
else if (directive.
TargetToken
.IsKind(SyntaxKind.WarningsKeyword))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Generated\Syntax.Test.xml.Generated.cs (2)
14277
Assert.Equal(SyntaxKind.None, node.
TargetToken
.Kind());
14280
var newNode = node.WithHashToken(node.HashToken).WithNullableKeyword(node.NullableKeyword).WithSettingToken(node.SettingToken).WithTargetToken(node.
TargetToken
).WithEndOfDirectiveToken(node.EndOfDirectiveToken).WithIsActive(node.IsActive);
LexicalAndXml\PreprocessorTests.cs (1)
258
var target = nn.
TargetToken
;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\Worker_Preprocesser.cs (1)
359
AddClassification(node.
TargetToken
, ClassificationTypeNames.PreprocessorKeyword);