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