25 references to GetDiagnostics
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNodeOrToken.cs (1)
474
return _nodeOrParent.
GetDiagnostics
();
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
115
?.
GetDiagnostics
().Any(d => d.Severity == DiagnosticSeverity.Error)
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
52
if (node.ContainsDiagnostics && node.
GetDiagnostics
().Any(d => d.Severity == DiagnosticSeverity.Error))
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
130
if (root.
GetDiagnostics
().Any(d => d.Severity == DiagnosticSeverity.Error))
455
reportedDiagnostics.AddRange(root.
GetDiagnostics
());
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
140
if (operationBlock.Syntax.
GetDiagnostics
().ToImmutableArrayOrEmpty().HasAnyErrors())
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
81
if (syntax.
GetDiagnostics
().Any(d => d.Severity == DiagnosticSeverity.Error))
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
124
if (context.Operation.Syntax.
GetDiagnostics
().Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error))
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
51
if (switchStatement.
GetDiagnostics
().Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error))
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
51
if (switchStatement.
GetDiagnostics
().Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error))
Microsoft.CodeAnalysis.Features (14)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
193
foreach (var diagnostic in attribute.
GetDiagnostics
())
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
42
if (from.
GetDiagnostics
().Any(d => d.DefaultSeverity == DiagnosticSeverity.Error))
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
81
if (ifStatement == null || ifStatement.
GetDiagnostics
().Any(d => d.Severity == DiagnosticSeverity.Error))
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
100
if (interpolatedString.
GetDiagnostics
().Any(d => d.Severity == DiagnosticSeverity.Error))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
570
var syntaxDiagnostics = newRoot.
GetDiagnostics
();
ExtractMethod\Extensions.cs (2)
52
var set = new HashSet<Diagnostic>(node.
GetDiagnostics
());
56
set.ExceptWith(child.
GetDiagnostics
());
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
52
if (node.ContainsDiagnostics && node.
GetDiagnostics
().Any(d => d.Severity == DiagnosticSeverity.Error))
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
130
if (root.
GetDiagnostics
().Any(d => d.Severity == DiagnosticSeverity.Error))
455
reportedDiagnostics.AddRange(root.
GetDiagnostics
());
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
140
if (operationBlock.Syntax.
GetDiagnostics
().ToImmutableArrayOrEmpty().HasAnyErrors())
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
81
if (syntax.
GetDiagnostics
().Any(d => d.Severity == DiagnosticSeverity.Error))
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
124
if (context.Operation.Syntax.
GetDiagnostics
().Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error))
Wrapping\AbstractWrapper.cs (1)
66
=> declaration.
GetDiagnostics
().Any(d => d.Severity == DiagnosticSeverity.Error && d.Location.SourceSpan.OverlapsWith(headerSpan));
Microsoft.CodeAnalysis.VisualBasic.Features (1)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
219
Dim diagnostics = nextNode.
GetDiagnostics
()