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)
115Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 733Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 740Assert.NotEqual(0, doc.ErrorsAndWarnings().Length); 891Assert.Equal(1, cdata.ErrorsAndWarnings().Length); 904Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 916Assert.Equal(1, cdata.ErrorsAndWarnings().Length); 930Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 942Assert.Equal(1, cdata.ErrorsAndWarnings().Length); 955Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 967Assert.Equal(1, cdata.ErrorsAndWarnings().Length); 1041Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1053Assert.Equal(1, comment.ErrorsAndWarnings().Length); 1066Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1078Assert.Equal(1, comment.ErrorsAndWarnings().Length); 1091Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1103Assert.Equal(1, comment.ErrorsAndWarnings().Length); 1182Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1196Assert.Equal(1, ProcessingInstruction.ErrorsAndWarnings().Length); 1208Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1222Assert.Equal(1, ProcessingInstruction.ErrorsAndWarnings().Length); 1235Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1249Assert.Equal(1, ProcessingInstruction.ErrorsAndWarnings().Length); 1504Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1515Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1526Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1537Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1548Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1615Assert.NotEqual(0, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 1627Assert.NotEqual(0, element.Attributes[0].ErrorsAndWarnings().Length); 2380Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 2410Assert.Equal(1, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 2491Assert.Equal(2, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 2694Assert.Equal(4, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 2720Assert.Equal(4, tree.GetCompilationUnitRoot().ErrorsAndWarnings().Length); 2748Assert.Equal(2, doc.ErrorsAndWarnings().Length); 3283VerifyDiagnostics(node.ErrorsAndWarnings(), errors);
Parsing\ParsingErrorRecoveryTests.cs (1)
3917var 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();