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)
16800if (hashToken != this.HashToken || nullableKeyword != this.NullableKeyword || settingToken != this.SettingToken || targetToken != this.TargetToken || endOfDirectiveToken != this.EndOfDirectiveToken) 16811public new NullableDirectiveTriviaSyntax WithHashToken(SyntaxToken hashToken) => Update(hashToken, this.NullableKeyword, this.SettingToken, this.TargetToken, this.EndOfDirectiveToken, this.IsActive); 16812public NullableDirectiveTriviaSyntax WithNullableKeyword(SyntaxToken nullableKeyword) => Update(this.HashToken, nullableKeyword, this.SettingToken, this.TargetToken, this.EndOfDirectiveToken, this.IsActive); 16813public NullableDirectiveTriviaSyntax WithSettingToken(SyntaxToken settingToken) => Update(this.HashToken, this.NullableKeyword, settingToken, this.TargetToken, this.EndOfDirectiveToken, this.IsActive); 16816public new NullableDirectiveTriviaSyntax WithEndOfDirectiveToken(SyntaxToken endOfDirectiveToken) => Update(this.HashToken, this.NullableKeyword, this.SettingToken, this.TargetToken, endOfDirectiveToken, this.IsActive); 16817public NullableDirectiveTriviaSyntax WithIsActive(bool isActive) => Update(this.HashToken, this.NullableKeyword, this.SettingToken, this.TargetToken, this.EndOfDirectiveToken, isActive);
Syntax\NullableContextStateMap.cs (1)
162var context = nn.TargetToken.Kind() switch
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (3)
120if (!directive.TargetToken.IsKind(SyntaxKind.None)) 128if (directive.TargetToken.IsKind(SyntaxKind.AnnotationsKeyword)) 132else if (directive.TargetToken.IsKind(SyntaxKind.WarningsKeyword))
Microsoft.CodeAnalysis.CSharp.Features (5)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (2)
176else 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)
120if (!directive.TargetToken.IsKind(SyntaxKind.None)) 128if (directive.TargetToken.IsKind(SyntaxKind.AnnotationsKeyword)) 132else if (directive.TargetToken.IsKind(SyntaxKind.WarningsKeyword))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\Worker_Preprocesser.cs (1)
458AddClassification(node.TargetToken, ClassificationTypeNames.PreprocessorKeyword);