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