19 references to DisableOrRestoreKeyword
Microsoft.CodeAnalysis.CSharp (10)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2239
=> node.Update(VisitToken(node.HashToken), VisitToken(node.PragmaKeyword), VisitToken(node.WarningKeyword), VisitToken(node.
DisableOrRestoreKeyword
), VisitList(node.ErrorCodes), VisitToken(node.EndOfDirectiveToken), node.IsActive);
_generated\2\Syntax.xml.Syntax.Generated.cs (7)
16462
if (hashToken != this.HashToken || pragmaKeyword != this.PragmaKeyword || warningKeyword != this.WarningKeyword || disableOrRestoreKeyword != this.
DisableOrRestoreKeyword
|| errorCodes != this.ErrorCodes || endOfDirectiveToken != this.EndOfDirectiveToken)
16473
public new PragmaWarningDirectiveTriviaSyntax WithHashToken(SyntaxToken hashToken) => Update(hashToken, this.PragmaKeyword, this.WarningKeyword, this.
DisableOrRestoreKeyword
, this.ErrorCodes, this.EndOfDirectiveToken, this.IsActive);
16474
public PragmaWarningDirectiveTriviaSyntax WithPragmaKeyword(SyntaxToken pragmaKeyword) => Update(this.HashToken, pragmaKeyword, this.WarningKeyword, this.
DisableOrRestoreKeyword
, this.ErrorCodes, this.EndOfDirectiveToken, this.IsActive);
16475
public PragmaWarningDirectiveTriviaSyntax WithWarningKeyword(SyntaxToken warningKeyword) => Update(this.HashToken, this.PragmaKeyword, warningKeyword, this.
DisableOrRestoreKeyword
, this.ErrorCodes, this.EndOfDirectiveToken, this.IsActive);
16477
public PragmaWarningDirectiveTriviaSyntax WithErrorCodes(SeparatedSyntaxList<ExpressionSyntax> errorCodes) => Update(this.HashToken, this.PragmaKeyword, this.WarningKeyword, this.
DisableOrRestoreKeyword
, errorCodes, this.EndOfDirectiveToken, this.IsActive);
16479
public new PragmaWarningDirectiveTriviaSyntax WithEndOfDirectiveToken(SyntaxToken endOfDirectiveToken) => Update(this.HashToken, this.PragmaKeyword, this.WarningKeyword, this.
DisableOrRestoreKeyword
, this.ErrorCodes, endOfDirectiveToken, this.IsActive);
16480
public PragmaWarningDirectiveTriviaSyntax WithIsActive(bool isActive) => Update(this.HashToken, this.PragmaKeyword, this.WarningKeyword, this.
DisableOrRestoreKeyword
, this.ErrorCodes, this.EndOfDirectiveToken, isActive);
Syntax\CSharpPragmaWarningStateMap.cs (2)
70
if (!w.
DisableOrRestoreKeyword
.IsMissing && !w.WarningKeyword.IsMissing)
100
PragmaWarningState directiveState = currentPragmaDirective.
DisableOrRestoreKeyword
.Kind() switch
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
206
isDisable = pragmaWarning.
DisableOrRestoreKeyword
.IsKind(SyntaxKind.DisableKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
339
if (!pragmaWarningDirectiveTrivia.
DisableOrRestoreKeyword
.IsKind(disableOrRestoreKeyword))
Microsoft.CodeAnalysis.CSharp.Features (2)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (2)
227
enableDirective = pragmaWarning.
DisableOrRestoreKeyword
.Kind() == SyntaxKind.RestoreKeyword;
240
var currentKeyword = pragmaWarning.
DisableOrRestoreKeyword
;
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Classification\Worker_Preprocesser.cs (1)
301
AddClassification(node.
DisableOrRestoreKeyword
, ClassificationTypeNames.PreprocessorKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
206
isDisable = pragmaWarning.
DisableOrRestoreKeyword
.IsKind(SyntaxKind.DisableKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
339
if (!pragmaWarningDirectiveTrivia.
DisableOrRestoreKeyword
.IsKind(disableOrRestoreKeyword))
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
206
isDisable = pragmaWarning.
DisableOrRestoreKeyword
.IsKind(SyntaxKind.DisableKeyword);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
339
if (!pragmaWarningDirectiveTrivia.
DisableOrRestoreKeyword
.IsKind(disableOrRestoreKeyword))