197 references to ERR_ExpressionExpected
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1374or 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) 19338Diagnostic(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)); 5847Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 5892Diagnostic(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)
4843Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12), 5075Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 6)); 5116Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 6)); 5160Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7)); 5212Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7)); 5258Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7), 5264Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7)); 5313Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 5362Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 5412Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 5470Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10)); 5528Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 5589Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 5658Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 7)); 5710Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 5770Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 5823Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 5832Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 5893Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 5902Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 5963Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 5969Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 5978Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 6047Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11), 6056Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 6122Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13), 6128Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13), 6137Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13)); 6211Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 17), 6217Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 17), 6223Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 17), 6232Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 17)); 6322Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 6371Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 6535Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 6599Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 26)); 6842Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8), 6848Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8), 6854Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 6905Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8), 6911Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 6960Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10)); 7006Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13)); 7058Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 7118Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 7178Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14), 7187Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14)); 7262Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 16)); 7331Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 7393Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 7454Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12), 7463Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 7533Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 7603Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13)); 7673Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12)); 7743Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 7813Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10)); 7887Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11)); 7955Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14), 7961Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14), 7970Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 14)); 8047Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9)); 8103Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 24)); 8165Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13), 8174Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 13)); 8239Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8), 8248Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 8)); 8312Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 23)); 8413Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 17)); 8482Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 22)); 8595Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 9)); 8641Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 11), 8650Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 11)); 8720Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 11)); 8784Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 13), 8796Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(2, 13)); 8992Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 9336Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 9), 9391Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10), 9451Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 10), 9511Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 11), 9576Diagnostic(ErrorCode.ERR_ExpressionExpected, "").WithLocation(1, 12), 9627Diagnostic(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),