197 references to ERR_ExpressionExpected
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1374
or ErrorCode.
ERR_ExpressionExpected
Parser\LanguageParser.cs (1)
11748
expr = this.AddError(expr, ErrorCode.
ERR_ExpressionExpected
);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\GotoTest.cs (2)
1178
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(3, 5));
1184
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(3, 5));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IInterpolatedStringOperation.cs (2)
138
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(8, 40)
1897
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(3, 32)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\BindingTests.cs (1)
743
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, ""),
Semantics\InterpolationTests.cs (4)
115
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(5, 73)
497
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(6, 32)
516
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(6, 33)
19338
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(3, 27),
Semantics\NullableReferenceTypesTests.cs (3)
91280
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 14),
91289
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 14),
91295
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 14),
Semantics\RawInterpolationTests.cs (3)
111
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(5, 75));
526
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(6, 34));
544
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(6, 34));
Semantics\ScriptSemanticsTests.cs (1)
587
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, ""));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\CompilationAPITests.cs (1)
3182
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 7),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (178)
LexicalAndXml\LexicalErrorTests.cs (37)
900
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 17),
1200
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(6, 38));
1204
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(6, 38));
1208
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(6, 38));
1233
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(9, 1),
1252
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(9, 1),
1271
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(9, 1),
1306
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(10, 1),
1325
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(10, 1),
1344
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(10, 1),
1414
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(8, 29));
1418
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(8, 29));
1422
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(8, 29));
1482
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 23));
1486
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 23));
1490
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 23));
1556
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(9, 23));
1560
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(9, 23));
1564
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(9, 23));
1657
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 39));
1661
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 39));
1665
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 39));
1709
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(9, 29));
1713
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(9, 29));
1717
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(9, 29));
1789
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(10, 23));
1793
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(10, 23));
1797
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(10, 23));
1868
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 23));
1872
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 23));
1876
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 23));
1896
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 24));
1900
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 24));
1904
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 24));
1924
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 30));
1928
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 30));
1932
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(7, 30));
Parsing\CollectionExpressionParsingTests.cs (3)
3373
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 30));
12873
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12));
12920
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 22));
Parsing\ExpressionParsingTests.cs (5)
41
Assert.Equal((int)ErrorCode.
ERR_ExpressionExpected
, expr.Errors()[0].Code);
1601
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(2, 2),
5976
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 6));
7000
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 21),
7009
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 21));
Parsing\ForStatementParsingTest.cs (12)
1043
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 43),
1157
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 45),
1274
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 47),
1396
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 48),
1524
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 49),
1654
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 50),
1765
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 44),
1853
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 46),
1945
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 48),
2041
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 49),
2144
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 50),
2245
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 51),
Parsing\ImplicitObjectCreationParsingTests.cs (1)
313
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 20));
Parsing\LambdaParameterParsingTests.cs (4)
2974
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 18),
5154
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 7));
5847
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9));
5892
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9));
Parsing\LambdaReturnTypeParsingTests.cs (8)
824
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 25));
1173
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 14));
1368
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 14));
1893
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 18));
3675
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 5),
3764
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9),
3944
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11),
3995
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11));
Parsing\NullableParsingTests.cs (5)
562
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12));
1380
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 17),
1386
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 17)
2042
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 22));
2227
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 18));
Parsing\ParserErrorMessageTests.cs (2)
5185
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(9, 36),
5191
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(9, 36),
Parsing\ParsingErrorRecoveryTests.cs (6)
8125
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9),
8131
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9),
8175
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 10),
8181
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 10),
8225
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11),
8231
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11),
Parsing\PatternParsingTests.cs (3)
1053
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 10)
2331
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 18),
6394
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 18)
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (2)
570
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(4, 11));
617
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(6, 5));
Parsing\ScriptParsingTests.cs (83)
4843
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12),
5075
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 6));
5116
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 6));
5160
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 7));
5212
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 7));
5258
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 7),
5264
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 7));
5313
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 8));
5362
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9));
5412
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11));
5470
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 10));
5528
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11));
5589
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12));
5658
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 7));
5710
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9));
5770
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 8));
5823
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9),
5832
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9));
5893
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9),
5902
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9));
5963
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9),
5969
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9),
5978
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9));
6047
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11),
6056
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11));
6122
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 13),
6128
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 13),
6137
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 13));
6211
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 17),
6217
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 17),
6223
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 17),
6232
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 17));
6322
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 8));
6371
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9));
6535
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11));
6599
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 26));
6842
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 8),
6848
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 8),
6854
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 8));
6905
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 8),
6911
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 8));
6960
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 10));
7006
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 13));
7058
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12));
7118
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12));
7178
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 14),
7187
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 14));
7262
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 16));
7331
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11));
7393
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12));
7454
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12),
7463
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12));
7533
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12));
7603
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 13));
7673
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12));
7743
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9));
7813
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 10));
7887
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11));
7955
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 14),
7961
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 14),
7970
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 14));
8047
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9));
8103
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 24));
8165
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 13),
8174
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 13));
8239
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 8),
8248
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 8));
8312
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 23));
8413
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(2, 17));
8482
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 22));
8595
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(2, 9));
8641
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(2, 11),
8650
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(2, 11));
8720
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(2, 11));
8784
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(2, 13),
8796
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(2, 13));
8992
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9),
9336
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9),
9391
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 10),
9451
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 10),
9511
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 11),
9576
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 12),
9627
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 16),
Parsing\SuppressNullableWarningExpressionParsingTests.cs (4)
379
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "", isSuppressed: false).WithLocation(1, 20));
450
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 21));
524
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "", isSuppressed: false).WithLocation(1, 20));
595
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "", isSuppressed: false).WithLocation(1, 19));
Parsing\SwitchExpressionParsingTests.cs (1)
4149
Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(3, 27),
Syntax\SyntaxNodeTests.cs (2)
495
TestBase.Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9),
501
TestBase.Diagnostic(ErrorCode.
ERR_ExpressionExpected
, "").WithLocation(1, 9),