2 overrides of GetDiagnostics
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpSyntaxTree.cs (1)
774public override IEnumerable<Diagnostic> GetDiagnostics(SyntaxNode node)
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxTree.vb (1)
317Public Overrides Function GetDiagnostics(node As SyntaxNode) As IEnumerable(Of Diagnostic)
26 references to GetDiagnostics
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNode.cs (1)
704return this.SyntaxTree.GetDiagnostics(this);
Microsoft.CodeAnalysis.CSharp (2)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
640foreach (Diagnostic diagnostic in CSharpSyntaxTree.Dummy.GetDiagnostics(treelessSyntax))
Syntax\CSharpSyntaxNode.cs (1)
217return this.SyntaxTree.GetDiagnostics(this);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\SyntaxTreeRootTests.cs (2)
114Assert.Throws<ArgumentNullException>(() => { tree.GetDiagnostics((CSharpSyntaxNode)null); }); 116Assert.Throws<ArgumentNullException>(() => { tree.GetDiagnostics((SyntaxNode)null); });
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Diagnostics\LocationsTests.cs (1)
458var expressionDiags = syntaxTree.GetDiagnostics(token.Parent.Parent);
Parsing\ScriptParsingTests.cs (1)
42var actualErrors = parsedTree.GetDiagnostics(parsedText);
Parsing\StatementParsingTests.cs (2)
3462tree.GetDiagnostics(root).Verify( 3532tree.GetDiagnostics(tree.GetRoot()).Verify(
Microsoft.CodeAnalysis.Test.Utilities (1)
Syntax\XmlHelpers.cs (1)
142if (syntaxTree.GetDiagnostics(node).Any())
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxNode.vb (1)
466Return SyntaxTree.GetDiagnostics(Me)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (5)
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (5)
358Dim errors = state.SyntaxTree.GetDiagnostics(xmlCData) 386Dim errors = state.SyntaxTree.GetDiagnostics(xmlComment) 414Dim errors = state.SyntaxTree.GetDiagnostics(xmlStartElement) 442Dim errors = state.SyntaxTree.GetDiagnostics(xmlEmbeddedExpression) 466Dim errors = state.SyntaxTree.GetDiagnostics(xmlProcessingInstruction)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\SyntaxTreeRootTests.vb (2)
90tree.GetDiagnostics(DirectCast(Nothing, VisualBasicSyntaxNode)) 101tree.GetDiagnostics(DirectCast(Nothing, SyntaxNode))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
TestSyntaxNodes.vb (6)
1735Assert.Equal(False, tree.GetDiagnostics(node).Any) 1765Assert.Equal(True, tree.GetDiagnostics(node).Any) 1766Assert.Equal(2, tree.GetDiagnostics(node).Count) 1767Assert.Equal(DiagnosticSeverity.Error, tree.GetDiagnostics(node)(0).Severity) 1768Assert.Equal(30625, tree.GetDiagnostics(node)(0).Code) 1769Assert.Equal(30678, tree.GetDiagnostics(node)(1).Code)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
ParserTestUtilities.vb (2)
401If tree.GetDiagnostics(node).Any Then 403VerifyContainsErrors(node.Parent, tree, tree.GetDiagnostics(node).ToXml)