42 references to ErrorsAndWarnings
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (42)
LexicalAndXml\PreprocessorTests.cs (2)
389var actual = node.ErrorsAndWarnings().Select(e => e.Code).ToList(); 414var diags = node.ErrorsAndWarnings();
LexicalAndXml\XmlDocCommentTests.cs (36)
116Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 734Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 741Assert.NotEqual(0, doc.ErrorsAndWarnings().Length); 892Assert.Equal(1, cdata.ErrorsAndWarnings().Length); 905Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 917Assert.Equal(1, cdata.ErrorsAndWarnings().Length); 931Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 943Assert.Equal(1, cdata.ErrorsAndWarnings().Length); 956Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 968Assert.Equal(1, cdata.ErrorsAndWarnings().Length); 1042Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1054Assert.Equal(1, comment.ErrorsAndWarnings().Length); 1067Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1079Assert.Equal(1, comment.ErrorsAndWarnings().Length); 1092Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1104Assert.Equal(1, comment.ErrorsAndWarnings().Length); 1183Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1197Assert.Equal(1, ProcessingInstruction.ErrorsAndWarnings().Length); 1209Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1223Assert.Equal(1, ProcessingInstruction.ErrorsAndWarnings().Length); 1236Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1250Assert.Equal(1, ProcessingInstruction.ErrorsAndWarnings().Length); 1505Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1516Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1527Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1538Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1549Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1616Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1628Assert.NotEqual(0, element.Attributes[0].ErrorsAndWarnings().Length); 2381Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 2411Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 2492Assert.Equal(2, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 2695Assert.Equal(4, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 2721Assert.Equal(4, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 2749Assert.Equal(2, doc.ErrorsAndWarnings().Length); 3297VerifyDiagnostics(node.ErrorsAndWarnings(), errors);
Parsing\ParsingErrorRecoveryTests.cs (1)
4079var diags = file.ErrorsAndWarnings();
Parsing\RoundTrippingTests.cs (2)
37Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 41Assert.Equal(errorCount, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length);
Parsing\StatementParsingTests.cs (1)
2125var diags = statement.ErrorsAndWarnings();