26 references to SettingToken
Microsoft.CodeAnalysis.CSharp (9)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2269
=> 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)
16968
if (hashToken != this.HashToken || nullableKeyword != this.NullableKeyword || settingToken != this.
SettingToken
|| targetToken != this.TargetToken || endOfDirectiveToken != this.EndOfDirectiveToken)
16979
public new NullableDirectiveTriviaSyntax WithHashToken(SyntaxToken hashToken) => Update(hashToken, this.NullableKeyword, this.
SettingToken
, this.TargetToken, this.EndOfDirectiveToken, this.IsActive);
16980
public NullableDirectiveTriviaSyntax WithNullableKeyword(SyntaxToken nullableKeyword) => Update(this.HashToken, nullableKeyword, this.
SettingToken
, this.TargetToken, this.EndOfDirectiveToken, this.IsActive);
16982
public NullableDirectiveTriviaSyntax WithTargetToken(SyntaxToken targetToken) => Update(this.HashToken, this.NullableKeyword, this.
SettingToken
, targetToken, this.EndOfDirectiveToken, this.IsActive);
16984
public new NullableDirectiveTriviaSyntax WithEndOfDirectiveToken(SyntaxToken endOfDirectiveToken) => Update(this.HashToken, this.NullableKeyword, this.
SettingToken
, this.TargetToken, endOfDirectiveToken, this.IsActive);
16985
public NullableDirectiveTriviaSyntax WithIsActive(bool isActive) => Update(this.HashToken, this.NullableKeyword, this.
SettingToken
, this.TargetToken, this.EndOfDirectiveToken, isActive);
Syntax\NullableContextStateMap.cs (2)
148
if (nn.
SettingToken
.IsMissing || !nn.IsActive)
154
var setting = (nn.
SettingToken
.Kind()) switch
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (5)
141
if (directive.
SettingToken
.IsKind(SyntaxKind.EnableKeyword))
145
else if (directive.
SettingToken
.IsKind(SyntaxKind.DisableKeyword))
155
if (directive.
SettingToken
.IsKind(SyntaxKind.EnableKeyword))
159
else if (directive.
SettingToken
.IsKind(SyntaxKind.DisableKeyword))
163
else if (directive.
SettingToken
.IsKind(SyntaxKind.RestoreKeyword))
Microsoft.CodeAnalysis.CSharp.Features (11)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (6)
138
if (originalNode.
SettingToken
.IsKind(SyntaxKind.DisableKeyword))
144
if (originalNode.
SettingToken
.IsKind(SyntaxKind.RestoreKeyword))
146
return rewrittenNode.WithSettingToken(DisableKeyword.WithTriviaFrom(rewrittenNode.
SettingToken
));
149
if (originalNode.
SettingToken
.IsKind(SyntaxKind.EnableKeyword))
151
return rewrittenNode.WithSettingToken(RestoreKeyword.WithTriviaFrom(rewrittenNode.
SettingToken
));
176
else if (leadingDirective.
SettingToken
.IsKind(SyntaxKind.RestoreKeyword) && leadingDirective.TargetToken.IsKind(SyntaxKind.None))
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (5)
141
if (directive.
SettingToken
.IsKind(SyntaxKind.EnableKeyword))
145
else if (directive.
SettingToken
.IsKind(SyntaxKind.DisableKeyword))
155
if (directive.
SettingToken
.IsKind(SyntaxKind.EnableKeyword))
159
else if (directive.
SettingToken
.IsKind(SyntaxKind.DisableKeyword))
163
else if (directive.
SettingToken
.IsKind(SyntaxKind.RestoreKeyword))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\Worker_Preprocesser.cs (1)
457
AddClassification(node.
SettingToken
, ClassificationTypeNames.PreprocessorKeyword);