197 references to ERR_ExpressionExpected
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1373or ErrorCode.ERR_ExpressionExpected
Parser\LanguageParser.cs (1)
11748expr = this.AddError(expr, ErrorCode.ERR_ExpressionExpected);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\GotoTest.cs (2)
1178Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(3, 5)); 1184Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(3, 5));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IInterpolatedStringOperation.cs (2)
138Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(8, 40) 1897Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(3, 32)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\BindingTests.cs (1)
743Diagnostic(ErrorCode.ERR_ExpressionExpected, ""),
Semantics\InterpolationTests.cs (4)
115Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(5, 73) 497Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(6, 32) 516Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(6, 33) 19067Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(3, 27),
Semantics\NullableReferenceTypesTests.cs (3)
91280Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14), 91289Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14), 91295Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14),
Semantics\RawInterpolationTests.cs (3)
111Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(5, 75)); 526Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(6, 34)); 544Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(6, 34));
Semantics\ScriptSemanticsTests.cs (1)
587Diagnostic(ErrorCode.ERR_ExpressionExpected, ""));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\CompilationAPITests.cs (1)
3182Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (178)
LexicalAndXml\LexicalErrorTests.cs (37)
900Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 17), 1200Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(6, 38)); 1204Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(6, 38)); 1208Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(6, 38)); 1233Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(9, 1), 1252Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(9, 1), 1271Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(9, 1), 1306Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(10, 1), 1325Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(10, 1), 1344Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(10, 1), 1414Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(8, 29)); 1418Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(8, 29)); 1422Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(8, 29)); 1482Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 23)); 1486Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 23)); 1490Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 23)); 1556Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(9, 23)); 1560Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(9, 23)); 1564Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(9, 23)); 1657Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 39)); 1661Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 39)); 1665Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 39)); 1709Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(9, 29)); 1713Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(9, 29)); 1717Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(9, 29)); 1789Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(10, 23)); 1793Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(10, 23)); 1797Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(10, 23)); 1868Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 23)); 1872Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 23)); 1876Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 23)); 1896Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 24)); 1900Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 24)); 1904Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 24)); 1924Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 30)); 1928Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 30)); 1932Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(7, 30));
Parsing\CollectionExpressionParsingTests.cs (3)
3373Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 30)); 12873Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 12920Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 22));
Parsing\ExpressionParsingTests.cs (5)
41Assert.Equal((int)ErrorCode.ERR_ExpressionExpected, expr.Errors()[0].Code); 1601Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 2), 5976Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 6)); 7000Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 21), 7009Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 21));
Parsing\ForStatementParsingTest.cs (12)
1043Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 43), 1157Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 45), 1274Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 47), 1396Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 48), 1524Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 49), 1654Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 50), 1765Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 44), 1853Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 46), 1945Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 48), 2041Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 49), 2144Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 50), 2245Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 51),
Parsing\ImplicitObjectCreationParsingTests.cs (1)
313Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 20));
Parsing\LambdaParameterParsingTests.cs (4)
2974Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 18), 5154Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7)); 5790Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 5835Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9));
Parsing\LambdaReturnTypeParsingTests.cs (8)
824Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 25)); 1173Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14)); 1368Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14)); 1893Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 18)); 3675Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 5), 3764Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 3944Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11), 3995Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11));
Parsing\NullableParsingTests.cs (5)
562Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 1380Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 17), 1386Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 17) 2042Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 22)); 2227Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 18));
Parsing\ParserErrorMessageTests.cs (2)
5185Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(9, 36), 5191Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(9, 36),
Parsing\ParsingErrorRecoveryTests.cs (6)
8125Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 8131Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 8175Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10), 8181Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10), 8225Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11), 8231Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11),
Parsing\PatternParsingTests.cs (3)
1053Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10) 2331Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 18), 6394Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 18)
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (2)
570Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(4, 11)); 617Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(6, 5));
Parsing\ScriptParsingTests.cs (83)
4329Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12), 4561Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 6)); 4602Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 6)); 4646Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7)); 4698Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7)); 4744Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7), 4750Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7)); 4799Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 4848Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 4898Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 4956Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10)); 5014Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 5075Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 5144Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7)); 5196Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 5256Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 5309Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 5318Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 5379Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 5388Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 5449Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 5455Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 5464Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 5533Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11), 5542Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 5608Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13), 5614Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13), 5623Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13)); 5697Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 17), 5703Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 17), 5709Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 17), 5718Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 17)); 5808Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 5857Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 6021Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 6085Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 26)); 6328Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8), 6334Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8), 6340Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 6391Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8), 6397Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 6446Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10)); 6492Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13)); 6544Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 6604Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 6664Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14), 6673Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14)); 6748Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 16)); 6817Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 6879Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 6940Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12), 6949Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 7019Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 7089Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13)); 7159Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 7229Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 7299Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10)); 7373Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 7441Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14), 7447Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14), 7456Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14)); 7533Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 7589Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 24)); 7651Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13), 7660Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13)); 7725Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8), 7734Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 7798Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 23)); 7899Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 17)); 7968Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 22)); 8081Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 9)); 8127Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 11), 8136Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 11)); 8206Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 11)); 8270Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 13), 8282Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 13)); 8478Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 8822Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 8877Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10), 8937Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10), 8997Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11), 9062Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12), 9113Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 16),
Parsing\SuppressNullableWarningExpressionParsingTests.cs (4)
379Diagnostic(ErrorCode.ERR_ExpressionExpected, "", isSuppressed: false).WithLocation(1, 20)); 450Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 21)); 524Diagnostic(ErrorCode.ERR_ExpressionExpected, "", isSuppressed: false).WithLocation(1, 20)); 595Diagnostic(ErrorCode.ERR_ExpressionExpected, "", isSuppressed: false).WithLocation(1, 19));
Parsing\SwitchExpressionParsingTests.cs (1)
4149Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(3, 27),
Syntax\SyntaxNodeTests.cs (2)
495TestBase.Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 501TestBase.Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9),