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)
16412if (hashToken != this.HashToken || pragmaKeyword != this.PragmaKeyword || warningKeyword != this.WarningKeyword || disableOrRestoreKeyword != this.DisableOrRestoreKeyword || errorCodes != this.ErrorCodes || endOfDirectiveToken != this.EndOfDirectiveToken) 16423public new PragmaWarningDirectiveTriviaSyntax WithHashToken(SyntaxToken hashToken) => Update(hashToken, this.PragmaKeyword, this.WarningKeyword, this.DisableOrRestoreKeyword, this.ErrorCodes, this.EndOfDirectiveToken, this.IsActive); 16424public PragmaWarningDirectiveTriviaSyntax WithPragmaKeyword(SyntaxToken pragmaKeyword) => Update(this.HashToken, pragmaKeyword, this.WarningKeyword, this.DisableOrRestoreKeyword, this.ErrorCodes, this.EndOfDirectiveToken, this.IsActive); 16425public PragmaWarningDirectiveTriviaSyntax WithWarningKeyword(SyntaxToken warningKeyword) => Update(this.HashToken, this.PragmaKeyword, warningKeyword, this.DisableOrRestoreKeyword, this.ErrorCodes, this.EndOfDirectiveToken, this.IsActive); 16426public PragmaWarningDirectiveTriviaSyntax WithDisableOrRestoreKeyword(SyntaxToken disableOrRestoreKeyword) => Update(this.HashToken, this.PragmaKeyword, this.WarningKeyword, disableOrRestoreKeyword, this.ErrorCodes, this.EndOfDirectiveToken, this.IsActive); 16429public new PragmaWarningDirectiveTriviaSyntax WithEndOfDirectiveToken(SyntaxToken endOfDirectiveToken) => Update(this.HashToken, this.PragmaKeyword, this.WarningKeyword, this.DisableOrRestoreKeyword, this.ErrorCodes, endOfDirectiveToken, this.IsActive); 16430public PragmaWarningDirectiveTriviaSyntax WithIsActive(bool isActive) => Update(this.HashToken, this.PragmaKeyword, this.WarningKeyword, this.DisableOrRestoreKeyword, this.ErrorCodes, this.EndOfDirectiveToken, isActive); 16432public PragmaWarningDirectiveTriviaSyntax AddErrorCodes(params ExpressionSyntax[] items) => WithErrorCodes(this.ErrorCodes.AddRange(items));
Syntax\CSharpPragmaWarningStateMap.cs (3)
109if (currentPragmaDirective.ErrorCodes.Count == 0) 118for (int x = 0; x < currentPragmaDirective.ErrorCodes.Count; x++) 120var currentErrorCode = currentPragmaDirective.ErrorCodes[x];
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
208errorCodes = pragmaWarning.ErrorCodes;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
352foreach (var errorCode in pragmaWarningDirectiveTrivia.ErrorCodes)
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (2)
228hasMultipleIds = pragmaWarning.ErrorCodes.Count > 1; 229return 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)
14190Assert.Equal(default, node.ErrorCodes); 14193var 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)
329Assert.Equal(0, pwd.ErrorCodes.Count); 333Assert.Equal(expected.WarningList.Length, pwd.ErrorCodes.Count); 337var actualWarningNumber = pwd.ErrorCodes[idx++];
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\Worker_Preprocesser.cs (2)
302foreach (var nodeOrToken in node.ErrorCodes.GetWithSeparators()) 307if (node.ErrorCodes.Count == 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
208errorCodes = pragmaWarning.ErrorCodes;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
352foreach (var errorCode in pragmaWarningDirectiveTrivia.ErrorCodes)
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
208errorCodes = pragmaWarning.ErrorCodes;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
352foreach (var errorCode in pragmaWarningDirectiveTrivia.ErrorCodes)