30 references to ErrorCodes
Microsoft.CodeAnalysis.CSharp (12)
Syntax.xml.Main.Generated.cs (1)
2227
=> node.Update(VisitToken(node.HashToken), VisitToken(node.PragmaKeyword), VisitToken(node.WarningKeyword), VisitToken(node.DisableOrRestoreKeyword), VisitList(node.
ErrorCodes
), VisitToken(node.EndOfDirectiveToken), node.IsActive);
Syntax.xml.Syntax.Generated.cs (8)
16412
if (hashToken != this.HashToken || pragmaKeyword != this.PragmaKeyword || warningKeyword != this.WarningKeyword || disableOrRestoreKeyword != this.DisableOrRestoreKeyword || errorCodes != this.
ErrorCodes
|| endOfDirectiveToken != this.EndOfDirectiveToken)
16423
public new PragmaWarningDirectiveTriviaSyntax WithHashToken(SyntaxToken hashToken) => Update(hashToken, this.PragmaKeyword, this.WarningKeyword, this.DisableOrRestoreKeyword, this.
ErrorCodes
, this.EndOfDirectiveToken, this.IsActive);
16424
public PragmaWarningDirectiveTriviaSyntax WithPragmaKeyword(SyntaxToken pragmaKeyword) => Update(this.HashToken, pragmaKeyword, this.WarningKeyword, this.DisableOrRestoreKeyword, this.
ErrorCodes
, this.EndOfDirectiveToken, this.IsActive);
16425
public PragmaWarningDirectiveTriviaSyntax WithWarningKeyword(SyntaxToken warningKeyword) => Update(this.HashToken, this.PragmaKeyword, warningKeyword, this.DisableOrRestoreKeyword, this.
ErrorCodes
, this.EndOfDirectiveToken, this.IsActive);
16426
public PragmaWarningDirectiveTriviaSyntax WithDisableOrRestoreKeyword(SyntaxToken disableOrRestoreKeyword) => Update(this.HashToken, this.PragmaKeyword, this.WarningKeyword, disableOrRestoreKeyword, this.
ErrorCodes
, this.EndOfDirectiveToken, this.IsActive);
16429
public new PragmaWarningDirectiveTriviaSyntax WithEndOfDirectiveToken(SyntaxToken endOfDirectiveToken) => Update(this.HashToken, this.PragmaKeyword, this.WarningKeyword, this.DisableOrRestoreKeyword, this.
ErrorCodes
, endOfDirectiveToken, this.IsActive);
16430
public PragmaWarningDirectiveTriviaSyntax WithIsActive(bool isActive) => Update(this.HashToken, this.PragmaKeyword, this.WarningKeyword, this.DisableOrRestoreKeyword, this.
ErrorCodes
, this.EndOfDirectiveToken, isActive);
16432
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
208
errorCodes = pragmaWarning.
ErrorCodes
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
352
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)
57
? directive.
ErrorCodes
.LastOrDefault()
58
: directive.
ErrorCodes
.FirstOrDefault(),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Diagnostics\DiagnosticTest.cs (1)
1990
.
ErrorCodes
.OfType<Syntax.IdentifierNameSyntax>().First().Identifier;
Generated\Syntax.Test.xml.Generated.cs (2)
14190
Assert.Equal(default, node.
ErrorCodes
);
14193
var newNode = node.WithHashToken(node.HashToken).WithPragmaKeyword(node.PragmaKeyword).WithWarningKeyword(node.WarningKeyword).WithDisableOrRestoreKeyword(node.DisableOrRestoreKeyword).WithErrorCodes(node.
ErrorCodes
).WithEndOfDirectiveToken(node.EndOfDirectiveToken).WithIsActive(node.IsActive);
LexicalAndXml\PreprocessorTests.cs (3)
329
Assert.Equal(0, pwd.
ErrorCodes
.Count);
333
Assert.Equal(expected.WarningList.Length, pwd.
ErrorCodes
.Count);
337
var actualWarningNumber = pwd.
ErrorCodes
[idx++];
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\Worker_Preprocesser.cs (2)
302
foreach (var nodeOrToken in node.
ErrorCodes
.GetWithSeparators())
307
if (node.
ErrorCodes
.Count == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
208
errorCodes = pragmaWarning.
ErrorCodes
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
352
foreach (var errorCode in pragmaWarningDirectiveTrivia.
ErrorCodes
)
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
208
errorCodes = pragmaWarning.
ErrorCodes
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
352
foreach (var errorCode in pragmaWarningDirectiveTrivia.
ErrorCodes
)