17 references to TargetToken
Microsoft.CodeAnalysis.CSharp (8)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2257
=> node.Update(VisitToken(node.HashToken), VisitToken(node.NullableKeyword), VisitToken(node.SettingToken), VisitToken(node.
TargetToken
), VisitToken(node.EndOfDirectiveToken), node.IsActive);
_generated\2\Syntax.xml.Syntax.Generated.cs (6)
16800
if (hashToken != this.HashToken || nullableKeyword != this.NullableKeyword || settingToken != this.SettingToken || targetToken != this.
TargetToken
|| endOfDirectiveToken != this.EndOfDirectiveToken)
16811
public new NullableDirectiveTriviaSyntax WithHashToken(SyntaxToken hashToken) => Update(hashToken, this.NullableKeyword, this.SettingToken, this.
TargetToken
, this.EndOfDirectiveToken, this.IsActive);
16812
public NullableDirectiveTriviaSyntax WithNullableKeyword(SyntaxToken nullableKeyword) => Update(this.HashToken, nullableKeyword, this.SettingToken, this.
TargetToken
, this.EndOfDirectiveToken, this.IsActive);
16813
public NullableDirectiveTriviaSyntax WithSettingToken(SyntaxToken settingToken) => Update(this.HashToken, this.NullableKeyword, settingToken, this.
TargetToken
, this.EndOfDirectiveToken, this.IsActive);
16816
public new NullableDirectiveTriviaSyntax WithEndOfDirectiveToken(SyntaxToken endOfDirectiveToken) => Update(this.HashToken, this.NullableKeyword, this.SettingToken, this.
TargetToken
, endOfDirectiveToken, this.IsActive);
16817
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\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (3)
120
if (!directive.
TargetToken
.IsKind(SyntaxKind.None))
128
if (directive.
TargetToken
.IsKind(SyntaxKind.AnnotationsKeyword))
132
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\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (3)
120
if (!directive.
TargetToken
.IsKind(SyntaxKind.None))
128
if (directive.
TargetToken
.IsKind(SyntaxKind.AnnotationsKeyword))
132
else if (directive.
TargetToken
.IsKind(SyntaxKind.WarningsKeyword))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\Worker_Preprocesser.cs (1)
458
AddClassification(node.
TargetToken
, ClassificationTypeNames.PreprocessorKeyword);