24 references to ErrorCodes
Microsoft.CodeAnalysis.CSharp (12)
_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 (8)
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);
16476
public PragmaWarningDirectiveTriviaSyntax WithDisableOrRestoreKeyword(SyntaxToken disableOrRestoreKeyword) => Update(this.HashToken, this.PragmaKeyword, this.WarningKeyword, disableOrRestoreKeyword, this.
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);
16482
public PragmaWarningDirectiveTriviaSyntax AddErrorCodes(params ExpressionSyntax[] items) => WithErrorCodes(this.
ErrorCodes
.AddRange(items));
Syntax\CSharpPragmaWarningStateMap.cs (3)
109
if (currentPragmaDirective.
ErrorCodes
.Count == 0)
118
for (int x = 0; x < currentPragmaDirective.
ErrorCodes
.Count; x++)
120
var currentErrorCode = currentPragmaDirective.
ErrorCodes
[x];
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
208
errorCodes = pragmaWarning.
ErrorCodes
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
344
foreach (var errorCode in pragmaWarningDirectiveTrivia.
ErrorCodes
)
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (2)
228
hasMultipleIds = pragmaWarning.
ErrorCodes
.Count > 1;
229
return pragmaWarning.
ErrorCodes
.Any(n => n.ToString() == id);
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (2)
48
? directive.
ErrorCodes
.LastOrDefault()
49
: directive.
ErrorCodes
.FirstOrDefault(),
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\Worker_Preprocesser.cs (2)
303
foreach (var nodeOrToken in node.
ErrorCodes
.GetWithSeparators())
308
if (node.
ErrorCodes
.Count == 0)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
208
errorCodes = pragmaWarning.
ErrorCodes
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
344
foreach (var errorCode in pragmaWarningDirectiveTrivia.
ErrorCodes
)
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
208
errorCodes = pragmaWarning.
ErrorCodes
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
344
foreach (var errorCode in pragmaWarningDirectiveTrivia.
ErrorCodes
)