1332 references to Errors
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1332)
IncrementalParsing\IncrementalParsingTests.cs (35)
52
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
53
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
100
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
101
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
136
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
137
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
153
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
154
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
169
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
170
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
187
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
188
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
205
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
206
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
221
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
222
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
243
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
244
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
265
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
266
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
289
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
290
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
314
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
315
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
333
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
334
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
356
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
365
var errors = newTree.GetCompilationUnitRoot().
Errors
();
399
var errors = oldTree.GetCompilationUnitRoot().
Errors
();
410
errors = newTree.GetCompilationUnitRoot().
Errors
();
1191
Assert.Equal(0, syntaxTree.GetCompilationUnitRoot().
Errors
().Length);
1211
Assert.Equal(0, syntaxTree.GetCompilationUnitRoot().
Errors
().Length);
1230
Assert.Equal(0, syntaxTree.GetCompilationUnitRoot().
Errors
().Length);
3121
Assert.Equal(0, oldTree.GetCompilationUnitRoot().
Errors
().Length);
3122
Assert.Equal(0, newTree.GetCompilationUnitRoot().
Errors
().Length);
LexicalAndXml\XmlDocCommentTests.cs (65)
79
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
99
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
131
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
147
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
169
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
193
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
216
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
239
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
262
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
289
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
317
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
341
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
366
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
392
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
419
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
446
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
474
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
503
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
533
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
562
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
592
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
623
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
646
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
668
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
690
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
712
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
754
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
788
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
821
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
852
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
983
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1014
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1119
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1152
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1264
Assert.Equal(1, tree.GetCompilationUnitRoot().
Errors
().Length);
1309
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1333
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1358
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1382
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1407
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1431
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1456
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1480
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1560
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1588
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1642
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1709
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1748
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1829
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1864
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1899
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1934
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
1969
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
2006
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
2044
Assert.Equal(1, tree.GetCompilationUnitRoot().
Errors
().Length); // 4 errors because of the incomplete class decl
2080
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
2111
Assert.Equal(1, tree.GetCompilationUnitRoot().
Errors
().Length); // error because of the incomplete class decl
2144
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length); // 4 errors because of the incomplete class decl
2174
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length); // 4 errors because of the incomplete class decl
2205
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
2242
Assert.Equal(1, tree.GetCompilationUnitRoot().
Errors
().Length);
2255
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
2283
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
2325
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
2677
Assert.Equal(0, tree.GetCompilationUnitRoot().
Errors
().Length);
Parsing\DeclarationParsingTests.cs (155)
37
Assert.Equal(0, file.
Errors
().Length);
60
Assert.Equal(0, file.
Errors
().Length);
82
Assert.Equal(0, file.
Errors
().Length);
105
var errors = file.
Errors
();
120
var errors = file.
Errors
();
135
var errors = file.
Errors
();
149
Assert.Equal(0, file.
Errors
().Length);
171
Assert.Equal(0, file.
Errors
().Length);
193
Assert.Equal(0, file.
Errors
().Length);
215
Assert.Equal(0, file.
Errors
().Length);
239
Assert.Equal(0, file.
Errors
().Length);
263
Assert.Equal(0, file.
Errors
().Length);
289
Assert.Equal(0, file.
Errors
().Length);
318
Assert.Equal(0, file.
Errors
().Length);
347
Assert.Equal(0, file.
Errors
().Length);
374
Assert.Equal(0, file.
Errors
().Length);
402
Assert.Equal(0, file.
Errors
().Length);
432
Assert.Equal(0, file.
Errors
().Length);
463
Assert.Equal(0, file.
Errors
().Length);
499
Assert.Equal(0, file.
Errors
().Length);
531
Assert.Equal(0, file.
Errors
().Length);
568
Assert.Equal(0, file.
Errors
().Length);
590
Assert.Equal(0, file.
Errors
().Length);
611
Assert.Equal(0, file.
Errors
().Length);
633
Assert.Equal(0, file.
Errors
().Length);
656
Assert.Equal(0, file.
Errors
().Length);
678
Assert.Equal(0, file.
Errors
().Length);
701
Assert.Equal(0, file.
Errors
().Length);
723
Assert.Equal(1, file.
Errors
().Length);
747
Assert.Equal(0, file.
Errors
().Length);
778
Assert.Equal(0, file.
Errors
().Length);
804
Assert.Equal(0, file.
Errors
().Length);
831
Assert.Equal(0, file.
Errors
().Length);
858
Assert.Equal(0, file.
Errors
().Length);
885
Assert.Equal(0, file.
Errors
().Length);
912
Assert.Equal(0, file.
Errors
().Length);
939
Assert.Equal(0, file.
Errors
().Length);
966
Assert.Equal(0, file.
Errors
().Length);
993
Assert.Equal(0, file.
Errors
().Length);
1021
Assert.Equal(0, file.
Errors
().Length);
1048
Assert.Equal(0, file.
Errors
().Length);
1079
Assert.Equal(0, file.
Errors
().Length);
1111
Assert.Equal(0, file.
Errors
().Length);
1152
var errors = file.
Errors
();
1214
Assert.Equal(0, file.
Errors
().Length);
1258
Assert.Equal(0, file.
Errors
().Length);
1299
Assert.Equal(0, file.
Errors
().Length);
1340
Assert.Equal(0, file.
Errors
().Length);
1396
Assert.Equal(0, file.
Errors
().Length);
1451
Assert.Equal(2, file.
Errors
().Length);
1497
Assert.Equal(3, file.
Errors
().Length);
1541
Assert.Equal(0, file.
Errors
().Length);
1601
Assert.Equal(0, file.
Errors
().Length);
1626
Assert.Equal(0, file.
Errors
().Length);
1656
Assert.Equal(0, file.
Errors
().Length);
1688
Assert.Equal(0, file.
Errors
().Length);
1713
Assert.Equal(0, file.
Errors
().Length);
1753
Assert.Equal(0, file.
Errors
().Length);
1794
Assert.Equal(0, file.
Errors
().Length);
1835
Assert.Equal(0, file.
Errors
().Length);
1877
Assert.Equal(0, file.
Errors
().Length);
1919
Assert.Equal(0, file.
Errors
().Length);
1960
Assert.Equal(0, file.
Errors
().Length);
2001
Assert.Equal(0, file.
Errors
().Length);
2028
Assert.Equal(0, file.
Errors
().Length);
2056
Assert.Equal(0, file.
Errors
().Length);
2103
Assert.Equal(0, file.
Errors
().Length);
2149
Assert.Equal(0, file.
Errors
().Length);
2184
Assert.Equal(0, file.
Errors
().Length);
2219
Assert.Equal(0, file.
Errors
().Length);
2261
Assert.Equal(0, file.
Errors
().Length);
2297
Assert.Equal(0, file.
Errors
().Length);
2333
Assert.Equal(0, file.
Errors
().Length);
2369
var errors = file.
Errors
();
2403
Assert.Equal(0, file.
Errors
().Length);
2439
Assert.Equal(0, file.
Errors
().Length);
2481
Assert.Equal(0, file.
Errors
().Length);
2527
Assert.Equal(0, file.
Errors
().Length);
2573
Assert.Equal(0, file.
Errors
().Length);
2618
Assert.Equal(1, file.
Errors
().Length);
2648
Assert.Equal(1, file.
Errors
().Length);
2676
Assert.Equal(0, file.
Errors
().Length);
2744
Assert.Equal(0, file.
Errors
().Length);
2791
Assert.Equal(0, file.
Errors
().Length);
2838
Assert.Equal(0, file.
Errors
().Length);
2888
Assert.Equal(0, file.
Errors
().Length);
2929
Assert.Equal(0, file.
Errors
().Length);
2975
Assert.Equal(3, file.
Errors
().Length);
2976
Assert.Equal(ErrorCode.ERR_SemicolonExpected, (ErrorCode)file.
Errors
()[0].Code);
2977
Assert.Equal(ErrorCode.ERR_InvalidMemberDecl, (ErrorCode)file.
Errors
()[1].Code);
2978
Assert.Equal(ErrorCode.ERR_InvalidMemberDecl, (ErrorCode)file.
Errors
()[2].Code);
2990
Assert.Equal(0, file.
Errors
().Length);
3042
Assert.Equal(0, file.
Errors
().Length);
3103
Assert.Equal(0, file.
Errors
().Length);
3168
Assert.Equal(0, file.
Errors
().Length);
3242
Assert.Equal(0, file.
Errors
().Length);
3307
Assert.Equal(0, file.
Errors
().Length);
3359
Assert.Equal(0, file.
Errors
().Length);
3405
Assert.Equal(0, file.
Errors
().Length);
3474
Assert.Equal(0, file.
Errors
().Length);
3486
Assert.Equal(0, file.
Errors
().Length);
3521
Assert.Equal(0, file.
Errors
().Length);
3568
Assert.Equal(0, file.
Errors
().Length);
3605
Assert.Equal(0, file.
Errors
().Length);
3665
Assert.Equal(0, file.
Errors
().Length);
3705
Assert.Equal(0, file.
Errors
().Length);
3759
Assert.Equal(0, file.
Errors
().Length);
3815
Assert.Equal(0, file.
Errors
().Length);
3860
Assert.Equal(0, file.
Errors
().Length);
3904
Assert.Equal(0, file.
Errors
().Length);
3949
Assert.Equal(0, file.
Errors
().Length);
4003
Assert.Equal(0, file.
Errors
().Length);
4066
Assert.Equal(0, file.
Errors
().Length);
4112
Assert.Equal(0, file.
Errors
().Length);
4166
Assert.Equal(0, file.
Errors
().Length);
4221
Assert.Equal(0, file.
Errors
().Length);
4294
Assert.Equal(0, file.
Errors
().Length);
4348
Assert.Equal(0, file.
Errors
().Length);
4402
Assert.Equal(0, file.
Errors
().Length);
4456
Assert.Equal(0, file.
Errors
().Length);
4465
Assert.Equal(0, ps.
Errors
().Length);
4486
Assert.Equal(0, file.
Errors
().Length);
4542
Assert.Equal(0, file.
Errors
().Length);
4598
Assert.Equal(0, file.
Errors
().Length);
4682
Assert.Equal(0, file.
Errors
().Length);
4738
Assert.Equal(0, file.
Errors
().Length);
4792
Assert.Equal(0, file.
Errors
().Length);
4875
Assert.Equal(0, file.
Errors
().Length);
4932
Assert.Equal(0, file.
Errors
().Length);
4999
Assert.Equal(0, file.
Errors
().Length);
5067
Assert.Equal(0, file.
Errors
().Length);
5134
Assert.Equal(0, file.
Errors
().Length);
5210
Assert.Equal(0, file.
Errors
().Length);
5278
Assert.Equal(0, file.
Errors
().Length);
5358
Assert.Equal(0, file.
Errors
().Length);
5472
Assert.Equal(0, file.
Errors
().Length);
5535
Assert.Equal(0, file.
Errors
().Length);
5583
Assert.Equal(0, file.
Errors
().Length);
5630
Assert.Equal(0, file.
Errors
().Length);
5634
Assert.Equal(0, ns.
Errors
().Length);
5642
Assert.Equal(0, file.
Errors
().Length);
5646
Assert.Equal(0, ns.
Errors
().Length);
5654
Assert.Equal(0, file.
Errors
().Length);
5658
Assert.Equal(0, ns.
Errors
().Length);
5706
Assert.Equal(1, file.
Errors
().Length);
5707
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[0].Code);
5778
Assert.Equal(0, file.
Errors
().Length);
5796
Assert.Equal(0, file.
Errors
().Length);
5881
Assert.Equal(0, file.
Errors
().Length);
5936
Assert.Equal(0, file.
Errors
().Length);
5949
Assert.Equal(0, file.
Errors
().Length);
5964
Assert.Equal(0, file.
Errors
().Length);
5990
Assert.Equal(0, file.
Errors
().Length);
6366
Assert.Equal(0, file.
Errors
().Length);
6387
Assert.Equal(0, file.
Errors
().Length);
Parsing\ExpressionParsingTests.cs (77)
40
Assert.Equal(1, expr.
Errors
().Length);
41
Assert.Equal((int)ErrorCode.ERR_ExpressionExpected, expr.
Errors
()[0].Code);
435
Assert.Equal(0, expr.
Errors
().Length);
447
Assert.Equal(0, expr.
Errors
().Length);
458
Assert.Equal(0, expr.
Errors
().Length);
481
Assert.Equal(0, expr.
Errors
().Length);
513
Assert.Equal(0, expr.
Errors
().Length);
528
Assert.Equal(0, expr.
Errors
().Length);
543
Assert.Equal(0, expr.
Errors
().Length);
557
Assert.Equal(0, expr.
Errors
().Length);
572
Assert.Equal(0, expr.
Errors
().Length);
603
Assert.Equal(0, expr.
Errors
().Length);
629
Assert.Equal(0, expr.
Errors
().Length);
675
Assert.Equal(0, expr.
Errors
().Length);
710
Assert.Equal(0, expr.
Errors
().Length);
735
Assert.Equal(0, expr.
Errors
().Length);
768
Assert.Equal(0, expr.
Errors
().Length);
819
Assert.Equal(0, expr.
Errors
().Length);
882
Assert.Equal(0, expr.
Errors
().Length);
903
Assert.Equal(0, expr.
Errors
().Length);
933
Assert.Equal(0, expr.
Errors
().Length);
954
Assert.Equal(0, expr.
Errors
().Length);
975
Assert.Equal(0, expr.
Errors
().Length);
1000
Assert.Equal(0, expr.
Errors
().Length);
1025
Assert.Equal(0, expr.
Errors
().Length);
1050
Assert.Equal(0, expr.
Errors
().Length);
1071
Assert.Equal(0, expr.
Errors
().Length);
1096
Assert.Equal(0, expr.
Errors
().Length);
1121
Assert.Equal(0, expr.
Errors
().Length);
1142
Assert.Equal(0, expr.
Errors
().Length);
1164
Assert.Equal(0, expr.
Errors
().Length);
1187
Assert.Equal(0, expr.
Errors
().Length);
1210
Assert.Equal(0, expr.
Errors
().Length);
1238
Assert.Equal(0, expr.
Errors
().Length);
1261
Assert.Equal(0, expr.
Errors
().Length);
1285
Assert.Equal(0, expr.
Errors
().Length);
1311
Assert.Equal(0, expr.
Errors
().Length);
1335
Assert.Equal(0, expr.
Errors
().Length);
1363
Assert.Equal(0, expr.
Errors
().Length);
1841
Assert.Equal(0, expr.
Errors
().Length);
1863
Assert.Equal(0, expr.
Errors
().Length);
1887
Assert.Equal(0, expr.
Errors
().Length);
1909
Assert.Equal(0, expr.
Errors
().Length);
1929
Assert.Equal(0, expr.
Errors
().Length);
1950
Assert.Equal(0, expr.
Errors
().Length);
1981
Assert.Equal(0, expr.
Errors
().Length);
2011
Assert.Equal(0, expr.
Errors
().Length);
2036
Assert.Equal(0, expr.
Errors
().Length);
2054
Assert.Equal(0, expr.
Errors
().Length);
2072
Assert.Equal(0, expr.
Errors
().Length);
2092
Assert.Equal(0, expr.
Errors
().Length);
2112
Assert.Equal(0, expr.
Errors
().Length);
2132
Assert.Equal(0, expr.
Errors
().Length);
2154
Assert.Equal(0, expr.
Errors
().Length);
2178
Assert.Equal(0, expr.
Errors
().Length);
2205
Assert.Equal(0, expr.
Errors
().Length);
2230
Assert.Equal(0, expr.
Errors
().Length);
2257
Assert.Equal(0, expr.
Errors
().Length);
2277
Assert.Equal(0, expr.
Errors
().Length);
2298
Assert.Equal(0, expr.
Errors
().Length);
2331
Assert.Equal(0, expr.
Errors
().Length);
2364
Assert.Equal(0, expr.
Errors
().Length);
2415
Assert.Equal(0, expr.
Errors
().Length);
2455
Assert.Equal(0, expr.
Errors
().Length);
2498
Assert.Equal(0, expr.
Errors
().Length);
2543
Assert.Equal(0, expr.
Errors
().Length);
2588
Assert.Equal(0, expr.
Errors
().Length);
2637
Assert.Equal(0, expr.
Errors
().Length);
2685
Assert.Equal(0, expr.
Errors
().Length);
2733
Assert.Equal(0, expr.
Errors
().Length);
2772
Assert.Equal(0, expr.
Errors
().Length);
2825
Assert.Equal(0, expr.
Errors
().Length);
2881
Assert.Equal(0, expr.
Errors
().Length);
2936
Assert.Equal(0, expr.
Errors
().Length);
2993
Assert.Equal(0, expr.
Errors
().Length);
3044
Assert.NotEqual(0, expr.
Errors
().Length);
4766
Assert.Equal(0, expr.
Errors
().Length);
Parsing\NameParsingTests.cs (50)
38
Assert.Equal(0, name.
Errors
().Length);
51
Assert.Equal(1, name.
Errors
().Length);
64
Assert.Equal(1, name.
Errors
().Length);
65
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, name.
Errors
()[0].Code);
78
Assert.Equal(2, name.
Errors
().Length);
79
Assert.Equal((int)ErrorCode.ERR_UnexpectedToken, name.
Errors
()[0].Code);
80
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, name.
Errors
()[1].Code);
93
Assert.Equal(2, name.
Errors
().Length);
94
Assert.Equal((int)ErrorCode.ERR_UnexpectedToken, name.
Errors
()[0].Code);
95
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, name.
Errors
()[1].Code);
108
Assert.Equal(2, name.
Errors
().Length);
109
Assert.Equal((int)ErrorCode.ERR_UnexpectedToken, name.
Errors
()[0].Code);
110
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, name.
Errors
()[1].Code);
123
Assert.Equal(0, name.
Errors
().Length);
138
Assert.Equal(0, name.
Errors
().Length);
151
Assert.Equal(0, name.
Errors
().Length);
164
Assert.Equal(0, name.
Errors
().Length);
170
Assert.Equal(0, name.
Errors
().Length);
193
Assert.Equal(1, name.
Errors
().Length);
199
Assert.Equal(0, name.
Errors
().Length);
211
Assert.Equal(0, name.
Errors
().Length);
227
Assert.Equal(0, name.
Errors
().Length);
243
Assert.Equal(0, name.
Errors
().Length);
303
Assert.Equal(0, name.
Errors
().Length);
320
Assert.Equal(0, name.
Errors
().Length);
338
Assert.Equal(0, name.
Errors
().Length);
352
Assert.Equal(0, name.
Errors
().Length);
366
Assert.Equal(0, name.
Errors
().Length);
383
Assert.Equal(0, name.
Errors
().Length);
444
Assert.Equal(0, name.
Errors
().Length);
495
Assert.Equal(0, name.
Errors
().Length);
510
Assert.Equal(0, name.
Errors
().Length);
536
Assert.Equal(0, name.
Errors
().Length);
558
Assert.Equal(0, name.
Errors
().Length);
580
Assert.Equal(0, name.
Errors
().Length);
611
Assert.Equal(0, name.
Errors
().Length);
633
Assert.Equal(1, arg.
Errors
().Length);
634
Assert.Equal((int)ErrorCode.ERR_IllegalVarianceSyntax, arg.
Errors
()[0].Code);
658
Assert.Equal(1, arg.
Errors
().Length);
659
Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.
Errors
()[0].Code);
684
Assert.Equal(1, arg.
Errors
().Length);
685
Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.
Errors
()[0].Code);
711
Assert.Equal(1, arg.
Errors
().Length);
712
Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.
Errors
()[0].Code);
717
Assert.Equal(0, arg2.
Errors
().Length);
742
Assert.Equal(1, arg.
Errors
().Length);
743
Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.
Errors
()[0].Code);
767
Assert.Equal(2, arg.
Errors
().Length);
768
Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.
Errors
()[0].Code);
769
Assert.Equal((int)ErrorCode.ERR_IllegalVarianceSyntax, arg.
Errors
()[1].Code);
Parsing\ParsingErrorRecoveryTests.cs (851)
243
Assert.Equal(3, file.
Errors
().Length);
244
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
245
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
246
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[2].Code);
259
Assert.Equal(3, file.
Errors
().Length);
260
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
261
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
262
Assert.Equal((int)ErrorCode.ERR_UsingAfterElements, file.
Errors
()[2].Code);
275
Assert.Equal(3, file.
Errors
().Length);
276
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
277
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
278
Assert.Equal((int)ErrorCode.ERR_ExternAfterElements, file.
Errors
()[2].Code);
292
Assert.Equal(2, file.
Errors
().Length);
293
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
294
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
308
Assert.Equal(2, file.
Errors
().Length);
309
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
310
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
323
Assert.Equal(2, file.
Errors
().Length);
324
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
325
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
338
Assert.Equal(2, file.
Errors
().Length);
339
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
340
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
353
Assert.Equal(2, file.
Errors
().Length);
354
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
355
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
368
Assert.Equal(3, file.
Errors
().Length);
369
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
370
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
371
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[2].Code);
384
Assert.Equal(3, file.
Errors
().Length);
385
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
386
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
387
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[2].Code);
400
Assert.Equal(2, file.
Errors
().Length);
401
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
402
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
415
Assert.Equal(3, file.
Errors
().Length);
416
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
417
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
418
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[2].Code);
431
Assert.Equal(3, file.
Errors
().Length);
432
file.
Errors
().Verify(
452
Assert.Equal(3, file.
Errors
().Length);
453
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
454
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
455
Assert.Equal((int)ErrorCode.ERR_UsingAfterElements, file.
Errors
()[2].Code);
468
Assert.Equal(3, file.
Errors
().Length);
469
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
470
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
471
Assert.Equal((int)ErrorCode.ERR_ExternAfterElements, file.
Errors
()[2].Code);
485
Assert.Equal(2, file.
Errors
().Length);
486
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
487
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
501
Assert.Equal(2, file.
Errors
().Length);
502
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
503
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
516
Assert.Equal(1, file.
Errors
().Length);
517
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
530
Assert.Equal(1, file.
Errors
().Length);
531
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
544
Assert.Equal(1, file.
Errors
().Length);
545
Assert.Equal((int)ErrorCode.ERR_EOFExpected, file.
Errors
()[0].Code);
558
Assert.Equal(2, file.
Errors
().Length);
559
Assert.Equal((int)ErrorCode.ERR_EOFExpected, file.
Errors
()[0].Code);
560
Assert.Equal((int)ErrorCode.ERR_EOFExpected, file.
Errors
()[1].Code);
573
Assert.Equal(1, file.
Errors
().Length);
574
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
611
Assert.Equal(3, file.
Errors
().Length);
612
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
613
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
614
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[2].Code);
627
Assert.Equal(2, file.
Errors
().Length);
628
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
629
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
642
Assert.Equal(2, file.
Errors
().Length);
643
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
644
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
657
Assert.Equal(1, file.
Errors
().Length);
658
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
671
Assert.Equal(2, file.
Errors
().Length);
672
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
673
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
686
Assert.Equal(2, file.
Errors
().Length);
687
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
688
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
701
Assert.Equal(3, file.
Errors
().Length);
702
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
703
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
704
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[2].Code);
717
Assert.Equal(4, file.
Errors
().Length);
718
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
719
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[1].Code);
720
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[2].Code);
721
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[3].Code);
734
Assert.Equal(5, file.
Errors
().Length);
735
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
736
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[1].Code);
737
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[2].Code);
738
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[3].Code);
739
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[4].Code);
752
Assert.Equal(3, file.
Errors
().Length);
753
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
754
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
755
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[2].Code);
768
Assert.Equal(1, file.
Errors
().Length);
769
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
782
Assert.Equal(1, file.
Errors
().Length);
783
Assert.Equal((int)ErrorCode.ERR_NamespaceUnexpected, file.
Errors
()[0].Code);
796
Assert.Equal(1, file.
Errors
().Length);
797
Assert.Equal((int)ErrorCode.ERR_EOFExpected, file.
Errors
()[0].Code);
810
Assert.Equal(1, file.
Errors
().Length);
811
Assert.Equal((int)ErrorCode.ERR_EOFExpected, file.
Errors
()[0].Code);
824
Assert.Equal(1, file.
Errors
().Length);
825
Assert.Equal((int)ErrorCode.ERR_EOFExpected, file.
Errors
()[0].Code);
848
Assert.Equal(0, file.
Errors
().Length);
862
Assert.Equal(3, file.
Errors
().Length);
863
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
864
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
865
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
879
Assert.Equal(2, file.
Errors
().Length);
880
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[0].Code);
881
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[1].Code);
895
Assert.Equal(3, file.
Errors
().Length);
896
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
897
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
898
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
912
Assert.Equal(3, file.
Errors
().Length);
913
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
914
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
915
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
928
Assert.Equal(2, file.
Errors
().Length);
929
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
930
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
943
Assert.Equal(1, file.
Errors
().Length);
944
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
957
Assert.Equal(2, file.
Errors
().Length);
958
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
959
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
972
Assert.Equal(2, file.
Errors
().Length);
973
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
974
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
987
Assert.Equal(1, file.
Errors
().Length);
988
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1001
Assert.Equal(0, file.
Errors
().Length);
1014
Assert.Equal(1, file.
Errors
().Length);
1015
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1028
Assert.Equal(0, file.
Errors
().Length);
1041
Assert.Equal(1, file.
Errors
().Length);
1042
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
1055
Assert.Equal(1, file.
Errors
().Length);
1056
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1069
Assert.Equal(0, file.
Errors
().Length);
1082
Assert.Equal(1, file.
Errors
().Length);
1083
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1096
Assert.Equal(0, file.
Errors
().Length);
1109
Assert.Equal(1, file.
Errors
().Length);
1110
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
1123
Assert.Equal(3, file.
Errors
().Length);
1124
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1125
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
1126
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[2].Code);
1139
Assert.Equal(2, file.
Errors
().Length);
1140
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
1141
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[1].Code);
1154
Assert.Equal(1, file.
Errors
().Length);
1155
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1168
Assert.Equal(1, file.
Errors
().Length);
1169
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1182
Assert.Equal(3, file.
Errors
().Length);
1183
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1184
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
1185
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[2].Code);
1198
Assert.Equal(2, file.
Errors
().Length);
1199
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
1200
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[1].Code);
1213
Assert.Equal(1, file.
Errors
().Length);
1214
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1227
Assert.Equal(1, file.
Errors
().Length);
1228
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1241
Assert.Equal(4, file.
Errors
().Length);
1242
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1243
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
1244
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[2].Code);
1245
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[3].Code);
1258
Assert.Equal(3, file.
Errors
().Length);
1259
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
1260
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[1].Code);
1261
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[2].Code);
1274
Assert.Equal(2, file.
Errors
().Length);
1275
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1276
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
1289
Assert.Equal(1, file.
Errors
().Length);
1290
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
1303
Assert.Equal(2, file.
Errors
().Length);
1304
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1305
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
1318
Assert.Equal(2, file.
Errors
().Length);
1319
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1320
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
1333
Assert.Equal(1, file.
Errors
().Length);
1334
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
1347
Assert.Equal(2, file.
Errors
().Length);
1348
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1349
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
1362
Assert.Equal(2, file.
Errors
().Length);
1363
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1364
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
1377
Assert.Equal(1, file.
Errors
().Length);
1378
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
1392
Assert.Equal(4, file.
Errors
().Length);
1393
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1394
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
1395
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[2].Code);
1396
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[3].Code);
1410
Assert.Equal(3, file.
Errors
().Length);
1411
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
1412
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
1413
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
1427
Assert.Equal(4, file.
Errors
().Length);
1428
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1429
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
1430
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[2].Code);
1431
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[3].Code);
1444
Assert.Equal(2, file.
Errors
().Length);
1445
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1446
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
1459
Assert.Equal(1, file.
Errors
().Length);
1460
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
1473
Assert.Equal(2, file.
Errors
().Length);
1474
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1475
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
1488
Assert.Equal(2, file.
Errors
().Length);
1489
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1490
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
1503
Assert.Equal(1, file.
Errors
().Length);
1504
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
1517
Assert.Equal(2, file.
Errors
().Length);
1518
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1519
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
1536
Assert.Equal(1, file.
Errors
().Length);
1537
Assert.Equal((int)ErrorCode.ERR_InvalidMemberDecl, file.
Errors
()[0].Code);
1554
Assert.Equal(1, file.
Errors
().Length);
1555
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[0].Code);
1572
Assert.Equal(2, file.
Errors
().Length);
1573
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1574
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
1591
Assert.Equal(3, file.
Errors
().Length);
1592
Assert.Equal((int)ErrorCode.ERR_InvalidMemberDecl, file.
Errors
()[0].Code);
1593
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
1594
Assert.Equal((int)ErrorCode.ERR_InvalidMemberDecl, file.
Errors
()[2].Code);
1611
Assert.Equal(2, file.
Errors
().Length);
1612
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
1613
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
1630
Assert.Equal(3, file.
Errors
().Length);
1631
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1632
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
1633
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
1649
Assert.Equal(1, file.
Errors
().Length);
1650
Assert.Equal((int)ErrorCode.ERR_InvalidMemberDecl, file.
Errors
()[0].Code);
1666
Assert.Equal(1, file.
Errors
().Length);
1667
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[0].Code);
1683
Assert.Equal(2, file.
Errors
().Length);
1684
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1685
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
1701
Assert.Equal(2, file.
Errors
().Length);
1702
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
1703
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
1719
Assert.Equal(3, file.
Errors
().Length);
1720
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1721
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
1722
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
1738
Assert.Equal(2, file.
Errors
().Length);
1739
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
1740
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
1756
Assert.Equal(4, file.
Errors
().Length);
1757
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1758
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
1759
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[2].Code);
1760
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[3].Code);
1776
Assert.Equal(1, file.
Errors
().Length);
1777
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[0].Code);
1793
Assert.Equal(1, file.
Errors
().Length);
1794
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
1810
Assert.Equal(2, file.
Errors
().Length);
1811
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1812
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
1828
Assert.Equal(1, file.
Errors
().Length);
1829
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
1845
Assert.Equal(3, file.
Errors
().Length);
1846
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1847
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
1848
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[2].Code);
1865
Assert.Equal(2, file.
Errors
().Length);
1866
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
1867
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
1884
Assert.Equal(3, file.
Errors
().Length);
1885
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
1886
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
1887
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
1904
Assert.Equal(2, file.
Errors
().Length);
1905
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
1906
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
1923
Assert.Equal(4, file.
Errors
().Length);
1924
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
1925
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
1926
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[2].Code);
1927
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[3].Code);
1944
Assert.Equal(1, file.
Errors
().Length);
1945
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[0].Code);
1961
Assert.Equal(1, file.
Errors
().Length);
1962
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
1978
Assert.Equal(1, file.
Errors
().Length);
1979
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
1995
Assert.Equal(1, file.
Errors
().Length);
1996
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
2010
Assert.Equal(1, file.
Errors
().Length);
2011
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
2027
Assert.Equal(3, file.
Errors
().Length);
2028
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
2029
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
2030
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
2066
Assert.Equal(4, file.
Errors
().Length);
2067
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
2068
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
2069
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[2].Code);
2070
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[3].Code);
2086
Assert.Equal(3, file.
Errors
().Length);
2087
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
2088
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
2089
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
2105
Assert.Equal(5, file.
Errors
().Length);
2106
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
2107
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
2108
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[2].Code);
2109
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[3].Code);
2110
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[4].Code);
2126
Assert.Equal(2, file.
Errors
().Length);
2127
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[0].Code);
2128
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[1].Code);
2144
Assert.Equal(1, file.
Errors
().Length);
2145
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2175
Assert.Equal(2, file.
Errors
().Length);
2176
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
2177
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
2193
Assert.Equal(1, file.
Errors
().Length);
2194
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2210
Assert.Equal(3, file.
Errors
().Length);
2211
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
2212
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
2213
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[2].Code);
2230
Assert.Equal(3, file.
Errors
().Length);
2231
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
2232
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
2233
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
2270
Assert.Equal(4, file.
Errors
().Length);
2271
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
2272
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
2273
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[2].Code);
2274
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[3].Code);
2291
Assert.Equal(3, file.
Errors
().Length);
2292
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
2293
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
2294
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
2311
Assert.Equal(5, file.
Errors
().Length);
2312
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
2313
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
2314
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[2].Code);
2315
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[3].Code);
2316
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[4].Code);
2333
Assert.Equal(2, file.
Errors
().Length);
2334
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[0].Code);
2335
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[1].Code);
2348
Assert.Equal(5, file.
Errors
().Length);
2349
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
2350
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
2351
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[2].Code);
2352
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[3].Code);
2353
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[4].Code);
2366
Assert.Equal(4, file.
Errors
().Length);
2367
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
2368
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
2369
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[2].Code);
2370
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[3].Code);
2383
Assert.Equal(3, file.
Errors
().Length);
2384
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
2385
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
2386
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
2399
Assert.Equal(2, file.
Errors
().Length);
2400
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
2401
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
2414
Assert.Equal(3, file.
Errors
().Length);
2415
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
2416
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
2417
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
2430
Assert.Equal(2, file.
Errors
().Length);
2431
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
2432
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
2445
Assert.Equal(1, file.
Errors
().Length);
2446
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[0].Code);
2459
Assert.Equal(4, file.
Errors
().Length);
2460
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
2461
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
2462
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[2].Code);
2463
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[3].Code);
2477
Assert.Equal(5, file.
Errors
().Length);
2478
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
2479
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
2480
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[2].Code);
2481
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[3].Code);
2482
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[4].Code);
2496
Assert.Equal(4, file.
Errors
().Length);
2497
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
2498
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
2499
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[2].Code);
2500
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[3].Code);
2514
Assert.Equal(3, file.
Errors
().Length);
2515
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
2516
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
2517
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
2531
Assert.Equal(2, file.
Errors
().Length);
2532
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
2533
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
2547
Assert.Equal(3, file.
Errors
().Length);
2548
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
2549
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
2550
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
2564
Assert.Equal(2, file.
Errors
().Length);
2565
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
2566
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
2580
Assert.Equal(1, file.
Errors
().Length);
2581
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[0].Code);
2595
Assert.Equal(4, file.
Errors
().Length);
2596
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
2597
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
2598
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[2].Code);
2599
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[3].Code);
2612
Assert.Equal(1, file.
Errors
().Length);
2613
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2626
Assert.Equal(2, file.
Errors
().Length);
2627
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
2628
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
2641
Assert.Equal(1, file.
Errors
().Length);
2642
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2655
Assert.Equal(3, file.
Errors
().Length);
2656
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code);
2657
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
2658
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[2].Code);
2671
Assert.Equal(1, file.
Errors
().Length);
2672
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2685
Assert.Equal(1, file.
Errors
().Length);
2686
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2699
Assert.Equal(1, file.
Errors
().Length);
2700
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2713
Assert.Equal(1, file.
Errors
().Length);
2714
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2727
Assert.Equal(1, file.
Errors
().Length);
2728
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2741
Assert.Equal(1, file.
Errors
().Length);
2742
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2755
Assert.Equal(2, file.
Errors
().Length);
2756
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2757
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
2770
Assert.Equal(2, file.
Errors
().Length);
2771
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
2772
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
2785
Assert.Equal(1, file.
Errors
().Length);
2786
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
2799
Assert.Equal(1, file.
Errors
().Length);
2800
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
2813
Assert.Equal(1, file.
Errors
().Length);
2814
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
2828
Assert.Equal(1, file.
Errors
().Length);
2829
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
2843
Assert.Equal(1, file.
Errors
().Length);
2844
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
2858
Assert.Equal(1, file.
Errors
().Length);
2859
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
2874
Assert.Equal(2, file.
Errors
().Length);
2875
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2876
Assert.Equal((int)ErrorCode.ERR_ValueExpected, file.
Errors
()[1].Code);
2891
Assert.Equal(1, file.
Errors
().Length);
2892
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2907
Assert.Equal(3, file.
Errors
().Length);
2908
Assert.Equal(ErrorCode.ERR_SyntaxError, (ErrorCode)file.
Errors
()[0].Code); //expected comma
2909
Assert.Equal(ErrorCode.ERR_UnexpectedCharacter, (ErrorCode)file.
Errors
()[1].Code); //didn't expect '$'
2910
Assert.Equal(ErrorCode.ERR_ValueExpected, (ErrorCode)file.
Errors
()[2].Code); //expected value after (missing) comma
2925
Assert.Equal(1, file.
Errors
().Length);
2926
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2941
Assert.Equal(1, file.
Errors
().Length);
2942
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2957
Assert.Equal(1, file.
Errors
().Length);
2958
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
2973
Assert.Equal(1, file.
Errors
().Length);
2974
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
2989
Assert.Equal(1, file.
Errors
().Length);
2990
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
3007
Assert.Equal(1, file.
Errors
().Length);
3008
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
3025
Assert.Equal(1, file.
Errors
().Length);
3026
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
3047
Assert.Equal(2, file.
Errors
().Length);
3048
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
3049
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3070
Assert.Equal(3, file.
Errors
().Length);
3071
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
3072
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
3073
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
3094
Assert.Equal(3, file.
Errors
().Length);
3095
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
3096
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[1].Code);
3097
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
3118
Assert.Equal(1, file.
Errors
().Length);
3119
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[0].Code);
3140
Assert.Equal(2, file.
Errors
().Length);
3141
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
3142
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3163
Assert.Equal(2, file.
Errors
().Length);
3164
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
3165
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3186
Assert.Equal(2, file.
Errors
().Length);
3187
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
3188
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3209
Assert.Equal(2, file.
Errors
().Length);
3210
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
3211
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3232
Assert.Equal(2, file.
Errors
().Length);
3233
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
3234
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3254
Assert.Equal(1, file.
Errors
().Length);
3255
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3275
Assert.Equal(1, file.
Errors
().Length);
3276
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3296
Assert.Equal(1, file.
Errors
().Length);
3297
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3317
Assert.Equal(1, file.
Errors
().Length);
3318
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3338
Assert.Equal(1, file.
Errors
().Length);
3339
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3359
Assert.Equal(1, file.
Errors
().Length);
3360
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3380
Assert.Equal(2, file.
Errors
().Length);
3381
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3382
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
3404
Assert.Equal(1, file.
Errors
().Length);
3405
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3427
Assert.Equal(1, file.
Errors
().Length);
3428
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3450
Assert.Equal(1, file.
Errors
().Length);
3451
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3473
Assert.Equal(2, file.
Errors
().Length);
3474
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
3475
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
3497
Assert.Equal(1, file.
Errors
().Length);
3498
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
3520
Assert.Equal(1, file.
Errors
().Length);
3521
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
3543
Assert.Equal(2, file.
Errors
().Length);
3544
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
3545
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
3561
Assert.Equal(3, file.
Errors
().Length);
3562
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
3563
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
3564
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
3587
Assert.Equal(2, file.
Errors
().Length);
3588
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
3589
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3612
Assert.Equal(2, file.
Errors
().Length);
3613
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
3614
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3637
Assert.Equal(3, file.
Errors
().Length);
3638
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
3639
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
3640
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
3662
Assert.Equal(2, file.
Errors
().Length);
3663
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
3664
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3686
Assert.Equal(2, file.
Errors
().Length);
3687
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
3688
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3710
Assert.Equal(3, file.
Errors
().Length);
3711
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
3712
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
3713
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
3736
Assert.Equal(1, file.
Errors
().Length);
3737
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3760
Assert.Equal(1, file.
Errors
().Length);
3761
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3784
Assert.Equal(1, file.
Errors
().Length);
3785
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
3808
Assert.Equal(2, file.
Errors
().Length);
3809
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
3810
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
3833
Assert.Equal(1, file.
Errors
().Length);
3834
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
3857
Assert.Equal(1, file.
Errors
().Length);
3858
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
3881
Assert.Equal(2, file.
Errors
().Length);
3882
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
3883
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
3907
Assert.Equal(2, file.
Errors
().Length);
3908
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
3909
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3933
Assert.Equal(2, file.
Errors
().Length);
3934
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
3935
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
3959
Assert.Equal(3, file.
Errors
().Length);
3960
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
3961
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
3962
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
3985
Assert.Equal(2, file.
Errors
().Length);
3986
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
3987
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
4010
Assert.Equal(2, file.
Errors
().Length);
4011
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
4012
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
4035
Assert.Equal(3, file.
Errors
().Length);
4036
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
4037
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
4038
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
4058
Assert.Equal(1, file.
Errors
().Length);
4059
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
4124
Assert.Equal(1, file.
Errors
().Length);
4125
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
4145
Assert.Equal(1, file.
Errors
().Length);
4146
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
4166
Assert.Equal(1, file.
Errors
().Length);
4167
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
4187
Assert.Equal(2, file.
Errors
().Length);
4188
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[0].Code);
4189
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[1].Code);
4209
Assert.Equal(2, file.
Errors
().Length);
4210
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[0].Code);
4211
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[1].Code);
4231
Assert.Equal(3, file.
Errors
().Length);
4232
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
4233
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
4234
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
4254
Assert.Equal(3, file.
Errors
().Length);
4255
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
4256
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
4257
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
4277
Assert.Equal(1, file.
Errors
().Length);
4278
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[0].Code);
4298
Assert.Equal(2, file.
Errors
().Length);
4299
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[0].Code);
4300
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
4321
Assert.Equal(2, file.
Errors
().Length);
4322
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
4323
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
4344
file.
Errors
().Verify(
4370
Assert.Equal(1, file.
Errors
().Length);
4371
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
4392
Assert.Equal(5, file.
Errors
().Length);
4393
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
4394
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
4395
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[2].Code);
4396
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[3].Code);
4397
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[4].Code);
4418
Assert.Equal(7, file.
Errors
().Length);
4419
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
4420
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
4421
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[2].Code);
4422
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[3].Code);
4423
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[4].Code);
4424
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[5].Code);
4425
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[6].Code);
4445
Assert.Equal(1, file.
Errors
().Length);
4446
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
4466
Assert.Equal(3, file.
Errors
().Length);
4467
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
4468
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
4469
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[2].Code);
4489
Assert.Equal(5, file.
Errors
().Length);
4490
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
4491
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
4492
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[2].Code);
4493
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[3].Code);
4494
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[4].Code);
4514
file.
Errors
().Verify(
4539
Assert.Equal(2, file.
Errors
().Length);
4540
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
4541
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
4561
Assert.Equal(4, file.
Errors
().Length);
4562
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
4563
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
4564
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[2].Code);
4565
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[3].Code);
4592
Assert.Equal(0, file.
Errors
().Length);
4618
Assert.Equal(1, file.
Errors
().Length);
4619
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
4645
Assert.Equal(1, file.
Errors
().Length);
4646
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
4672
Assert.Equal(2, file.
Errors
().Length);
4673
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
4674
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[1].Code);
4700
Assert.Equal(1, file.
Errors
().Length);
4701
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
4727
Assert.Equal(1, file.
Errors
().Length);
4728
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
4755
Assert.Equal(2, file.
Errors
().Length);
4756
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
4757
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
4784
Assert.Equal(2, file.
Errors
().Length);
4785
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
4786
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
4813
Assert.Equal(3, file.
Errors
().Length);
4814
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
4815
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[1].Code);
4816
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
4843
Assert.Equal(2, file.
Errors
().Length);
4844
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
4845
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
4872
Assert.Equal(2, file.
Errors
().Length);
4873
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
4874
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
4900
Assert.Equal(1, file.
Errors
().Length);
4901
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
4927
Assert.Equal(1, file.
Errors
().Length);
4928
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
4954
Assert.Equal(1, file.
Errors
().Length);
4955
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
4981
Assert.Equal(2, file.
Errors
().Length);
4982
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
4983
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
5009
Assert.Equal(1, file.
Errors
().Length);
5010
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
5036
Assert.Equal(1, file.
Errors
().Length);
5037
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
5064
Assert.Equal(0, file.
Errors
().Length);
5090
Assert.Equal(4, file.
Errors
().Length);
5091
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
5092
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
5093
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
5094
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[3].Code);
5120
Assert.Equal(3, file.
Errors
().Length);
5121
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
5122
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
5123
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
5149
Assert.Equal(4, file.
Errors
().Length);
5150
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
5151
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code);
5152
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
5153
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[3].Code);
5179
Assert.Equal(3, file.
Errors
().Length);
5180
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[0].Code);
5181
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
5182
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
5872
Assert.Equal(2, file.
Errors
().Length);
5873
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
5874
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
5901
Assert.Equal(2, file.
Errors
().Length);
5902
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
5903
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
5930
Assert.Equal(3, file.
Errors
().Length);
5931
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
5932
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[1].Code);
5933
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
5960
Assert.Equal(2, file.
Errors
().Length);
5961
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
5962
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
6022
Assert.Equal(1, file.
Errors
().Length);
6023
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
6049
Assert.Equal(1, file.
Errors
().Length);
6050
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
6076
Assert.Equal(1, file.
Errors
().Length);
6077
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
6103
Assert.Equal(2, file.
Errors
().Length);
6104
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
6105
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[1].Code);
6131
Assert.Equal(1, file.
Errors
().Length);
6132
Assert.Equal((int)ErrorCode.ERR_UnexpectedCharacter, file.
Errors
()[0].Code);
6188
file.
Errors
().Verify(
6219
Assert.Equal(2, file.
Errors
().Length);
6220
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
6221
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
6251
}, file.
Errors
().Select(e => e.Code));
6295
file.
Errors
().Verify(
6329
Assert.Equal(3, file.
Errors
().Length);
6330
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
6331
Assert.Equal((int)ErrorCode.ERR_CloseParenExpected, file.
Errors
()[1].Code);
6332
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
6366
}, file.
Errors
().Select(e => e.Code));
6413
Assert.Equal(0, file.
Errors
().Length);
6438
Assert.Equal(1, file.
Errors
().Length);
6439
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
6472
Assert.Equal(2, file.
Errors
().Length);
6473
Assert.Equal((int)ErrorCode.ERR_SemiOrLBraceOrArrowExpected, file.
Errors
()[0].Code);
6474
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[1].Code);
6511
Assert.Equal(2, file.
Errors
().Length);
6512
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
6513
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[1].Code);
6550
Assert.Equal(2, file.
Errors
().Length);
6551
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[0].Code);
6552
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[1].Code);
6583
Assert.Equal(1, file.
Errors
().Length);
6584
Assert.Equal(ErrorCode.ERR_SemiOrLBraceOrArrowExpected, (ErrorCode)file.
Errors
()[0].Code);
6613
Assert.Equal(2, file.
Errors
().Length);
6614
Assert.Equal(ErrorCode.ERR_SemiOrLBraceOrArrowExpected, (ErrorCode)file.
Errors
()[0].Code);
6615
Assert.Equal(ErrorCode.ERR_SemiOrLBraceOrArrowExpected, (ErrorCode)file.
Errors
()[1].Code);
6658
Assert.Equal(2, file.
Errors
().Length);
6659
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
6660
Assert.Equal((int)ErrorCode.ERR_ExpectedSelectOrGroup, file.
Errors
()[1].Code);
6703
Assert.Equal(1, file.
Errors
().Length);
6704
Assert.Equal((int)ErrorCode.ERR_ExpectedSelectOrGroup, file.
Errors
()[0].Code);
6751
Assert.Equal(2, file.
Errors
().Length);
6752
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
6753
Assert.Equal((int)ErrorCode.ERR_ExpectedSelectOrGroup, file.
Errors
()[1].Code);
6797
Assert.Equal(4, file.
Errors
().Length);
6798
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
6799
Assert.Equal((int)ErrorCode.ERR_ExpectedSelectOrGroup, file.
Errors
()[1].Code);
6800
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
6801
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[3].Code);
6845
Assert.Equal(3, file.
Errors
().Length);
6846
Assert.Equal((int)ErrorCode.ERR_ExpectedSelectOrGroup, file.
Errors
()[0].Code);
6847
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[1].Code);
6848
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
6896
Assert.Equal(4, file.
Errors
().Length);
6897
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[0].Code);
6898
Assert.Equal((int)ErrorCode.ERR_ExpectedSelectOrGroup, file.
Errors
()[1].Code);
6899
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code);
6900
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[3].Code);
6932
Assert.Equal(3, subitem1.
Errors
().Length);
6933
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, subitem1.
Errors
()[0].Code);
6934
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, subitem1.
Errors
()[1].Code);
6935
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, subitem1.
Errors
()[2].Code);
6943
Assert.Equal(3, subitem2.
Errors
().Length);
6944
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, subitem2.
Errors
()[0].Code);
6945
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, subitem2.
Errors
()[1].Code);
6946
Assert.Equal((int)ErrorCode.ERR_InvalidMemberDecl, subitem2.
Errors
()[2].Code);
7069
Assert.Equal(1, file.
Errors
().Length);
7070
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
7084
Assert.Equal(1, file.
Errors
().Length);
7085
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
7099
Assert.Equal(3, file.
Errors
().Length);
7100
Assert.Equal((int)ErrorCode.ERR_IdentifierExpectedKW, file.
Errors
()[0].Code);
7101
Assert.Equal((int)ErrorCode.ERR_LbraceExpected, file.
Errors
()[1].Code);
7102
Assert.Equal((int)ErrorCode.ERR_RbraceExpected, file.
Errors
()[2].Code);
7151
Assert.Equal(1, file.
Errors
().Length);
7152
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code);
7253
Assert.Equal(1, file.
Errors
().Length);
7254
Assert.Equal((int)ErrorCode.ERR_GetOrSetExpected, file.
Errors
()[0].Code);
7273
Assert.Equal(0, file.
Errors
().Length);
7333
Assert.Equal(3, file.
Errors
().Length);
7334
Assert.Equal((int)ErrorCode.ERR_IdentifierExpected, file.
Errors
()[0].Code); //expecting item name - found "select" keyword
7335
Assert.Equal((int)ErrorCode.ERR_InvalidExprTerm, file.
Errors
()[1].Code); //expecting expression - found "select" keyword
7336
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, file.
Errors
()[2].Code); //we inserted a missing semicolon in a place we didn't expect
7358
Assert.Equal(2, file.
Errors
().Length);
7359
Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.
Errors
()[0].Code); //expecting a type (argument)
7360
Assert.Equal((int)ErrorCode.ERR_SyntaxError, file.
Errors
()[1].Code); //expecting close angle bracket
Parsing\StatementParsingTests.cs (98)
61
Assert.Equal(0, statement.
Errors
().Length);
81
Assert.Equal(0, statement.
Errors
().Length);
101
Assert.Equal(0, statement.
Errors
().Length);
120
Assert.Equal(0, statement.
Errors
().Length);
140
Assert.Equal(0, statement.
Errors
().Length);
159
Assert.Equal(0, statement.
Errors
().Length);
190
Assert.Equal(0, statement.
Errors
().Length);
218
Assert.Equal(0, statement.
Errors
().Length);
248
Assert.Equal(0, statement.
Errors
().Length);
282
Assert.Equal(0, statement.
Errors
().Length);
323
Assert.Equal(0, statement.
Errors
().Length);
351
Assert.Equal(0, statement.
Errors
().Length);
377
Assert.Equal(0, statement.
Errors
().Length);
403
Assert.Equal(0, statement.
Errors
().Length);
429
Assert.Equal(0, statement.
Errors
().Length);
455
Assert.Equal(0, statement.
Errors
().Length);
481
Assert.Equal(0, statement.
Errors
().Length);
507
Assert.Equal(0, statement.
Errors
().Length);
542
Assert.Equal(0, statement.
Errors
().Length);
572
Assert.Equal(0, statement.
Errors
().Length);
617
Assert.Equal(0, statement.
Errors
().Length);
648
Assert.Equal(0, statement.
Errors
().Length);
679
Assert.Equal(1, statement.
Errors
().Length);
680
Assert.Equal((int)ErrorCode.ERR_BadMemberFlag, statement.
Errors
()[0].Code);
711
Assert.Equal(1, statement.
Errors
().Length);
712
Assert.Equal((int)ErrorCode.ERR_BadMemberFlag, statement.
Errors
()[0].Code);
743
Assert.Equal(1, statement.
Errors
().Length);
744
Assert.Equal((int)ErrorCode.ERR_BadMemberFlag, statement.
Errors
()[0].Code);
775
Assert.Equal(0, statement.
Errors
().Length);
801
Assert.Equal(0, statement.
Errors
().Length);
832
Assert.Equal(0, statement.
Errors
().Length);
873
Assert.Equal(0, statement.
Errors
().Length);
900
Assert.Equal(0, statement.
Errors
().Length);
930
Assert.Equal(0, statement.
Errors
().Length);
958
Assert.Equal(0, statement.
Errors
().Length);
974
Assert.Equal(0, statement.
Errors
().Length);
995
Assert.Equal(0, statement.
Errors
().Length);
1014
Assert.Equal(0, statement.
Errors
().Length);
1033
Assert.Equal(0, statement.
Errors
().Length);
1055
Assert.Equal(0, statement.
Errors
().Length);
1079
Assert.Equal(0, statement.
Errors
().Length);
1102
Assert.Equal(0, statement.
Errors
().Length);
1122
Assert.Equal(0, statement.
Errors
().Length);
1143
Assert.Equal(0, statement.
Errors
().Length);
1167
Assert.Equal(0, statement.
Errors
().Length);
1190
Assert.Equal(0, statement.
Errors
().Length);
1210
Assert.Equal(0, statement.
Errors
().Length);
1231
Assert.Equal(0, statement.
Errors
().Length);
1261
Assert.Equal(0, statement.
Errors
().Length);
1290
Assert.Equal(0, statement.
Errors
().Length);
1314
Assert.Equal(0, statement.
Errors
().Length);
1357
Assert.Equal(0, statement.
Errors
().Length);
1380
Assert.Equal(0, statement.
Errors
().Length);
1425
Assert.Equal(0, statement.
Errors
().Length);
1442
Assert.Equal(0, statement.
Errors
().Length);
1459
Assert.Equal(0, statement.
Errors
().Length);
1476
Assert.Equal(0, statement.
Errors
().Length);
1498
Assert.Equal(0, statement.
Errors
().Length);
1523
Assert.Equal(0, statement.
Errors
().Length);
1549
Assert.Equal(0, statement.
Errors
().Length);
1586
Assert.Equal(0, statement.
Errors
().Length);
1625
Assert.Equal(0, statement.
Errors
().Length);
1734
Assert.Equal(0, statement.
Errors
().Length);
1763
Assert.Equal(0, statement.
Errors
().Length);
1793
Assert.Equal(0, statement.
Errors
().Length);
1823
Assert.Equal(0, statement.
Errors
().Length);
1853
Assert.Equal(0, statement.
Errors
().Length);
1884
Assert.Equal(0, statement.
Errors
().Length);
1927
Assert.Equal(0, statement.
Errors
().Length);
1956
Assert.Equal(1, statement.
Errors
().Length);
1989
Assert.Equal(0, statement.
Errors
().Length);
2020
Assert.Equal(0, statement.
Errors
().Length);
2043
Assert.Equal(0, statement.
Errors
().Length);
2069
Assert.Equal(0, statement.
Errors
().Length);
2103
Assert.Equal(0, statement.
Errors
().Length);
2124
Assert.Equal(0, statement.
Errors
().Length);
2149
Assert.Equal(0, statement.
Errors
().Length);
2184
Assert.Equal(0, statement.
Errors
().Length);
2231
Assert.Equal(0, statement.
Errors
().Length);
2264
Assert.Equal(0, statement.
Errors
().Length);
2306
Assert.Equal(0, statement.
Errors
().Length);
2342
Assert.Equal(0, statement.
Errors
().Length);
2364
Assert.Equal(0, statement.
Errors
().Length);
2398
Assert.Equal(0, statement.
Errors
().Length);
2457
Assert.Equal(0, statement.
Errors
().Length);
2493
Assert.Equal(0, statement.
Errors
().Length);
2625
Assert.Equal(0, statement.
Errors
().Length);
2797
Assert.Equal(0, statement.
Errors
().Length);
2841
Assert.Equal(0, statement.
Errors
().Length);
2922
Assert.Equal(0, statement.
Errors
().Length);
2944
Assert.Equal(0, statement.
Errors
().Length);
3005
Assert.Equal(0, statement.
Errors
().Length);
3027
Assert.Equal(0, statement.
Errors
().Length);
3077
Assert.Equal(0, statement.
Errors
().Length);
3099
Assert.Equal(0, statement.
Errors
().Length);
3375
Assert.Equal(0, statement.
Errors
().Length);
3555
Assert.Equal(1, statement.
Errors
().Length);
3556
Assert.Equal((int)ErrorCode.ERR_SemicolonExpected, statement.
Errors
()[0].Code);
Syntax\SyntaxFactoryTests.cs (1)
63
Assert.Equal(0, n.
Errors
().Length);