33 references to GetDiagnostics
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNodeOrToken.cs (1)
474return _nodeOrParent.GetDiagnostics();
Microsoft.CodeAnalysis.CodeStyle (7)
AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
53if (node.ContainsDiagnostics && node.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error))
AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
113?.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
128if (root.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error)) 453reportedDiagnostics.AddRange(root.GetDiagnostics());
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
107if (operationBlock.Syntax.GetDiagnostics().ToImmutableArrayOrEmpty().HasAnyErrors())
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
92if (syntax.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error))
AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
115if (context.Operation.Syntax.GetDiagnostics().Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error))
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
61if (conditionalExpression.GetRequiredParent().GetDiagnostics().Any(static d => d.Severity == DiagnosticSeverity.Error))
ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
61if (current.ContainsDiagnostics && current.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error))
ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
51if (switchStatement.GetDiagnostics().Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error))
Microsoft.CodeAnalysis.CSharp.Features (3)
ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
61if (conditionalExpression.GetRequiredParent().GetDiagnostics().Any(static d => d.Severity == DiagnosticSeverity.Error))
ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
61if (current.ContainsDiagnostics && current.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error))
ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
51if (switchStatement.GetDiagnostics().Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error))
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
Diagnostics\AbstractSuppressionAllCodeTests.cs (1)
79var existingDiagnostics = root.GetDiagnostics().ToArray();
Microsoft.CodeAnalysis.Features (17)
AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
53if (node.ContainsDiagnostics && node.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error))
AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
113?.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
128if (root.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error)) 453reportedDiagnostics.AddRange(root.GetDiagnostics());
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
107if (operationBlock.Syntax.GetDiagnostics().ToImmutableArrayOrEmpty().HasAnyErrors())
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
92if (syntax.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error))
AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
115if (context.Operation.Syntax.GetDiagnostics().Any(diagnostic => diagnostic.Severity == DiagnosticSeverity.Error))
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
193foreach (var diagnostic in attribute.GetDiagnostics())
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
42if (from.GetDiagnostics().Any(d => d.DefaultSeverity == DiagnosticSeverity.Error))
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
82if (ifStatement == null || ifStatement.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error))
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
100if (interpolatedString.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error))
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringRefactoringProvider.cs (1)
50if (literalExpression.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
558var syntaxDiagnostics = newRoot.GetDiagnostics();
ExtractMethod\Extensions.cs (2)
84var set = new HashSet<Diagnostic>(node.GetDiagnostics()); 88set.ExceptWith(child.GetDiagnostics());
Wrapping\AbstractWrapper.cs (1)
67=> declaration.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error && d.Location.SourceSpan.OverlapsWith(headerSpan));
Wrapping\AbstractWrappingCodeRefactoringProvider.cs (1)
53var containsSyntaxError = node.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error);
Microsoft.CodeAnalysis.VisualBasic.Features (1)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
219Dim diagnostics = nextNode.GetDiagnostics()