40 references to ERR_IncrementLvalueExpected
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder.ValueChecks.cs (3)
1228if (errorCode is ErrorCode.ERR_InvalidAddrOp or ErrorCode.ERR_IncrementLvalueExpected or ErrorCode.ERR_RefReturnThis or ErrorCode.ERR_RefLocalOrParamExpected or ErrorCode.ERR_RefLvalueExpected) 3467return isValueType ? ErrorCode.ERR_AssgReadonlyLocal : ErrorCode.ERR_IncrementLvalueExpected; 3536return ErrorCode.ERR_IncrementLvalueExpected;
Errors\ErrorFacts.cs (1)
1180or ErrorCode.ERR_IncrementLvalueExpected
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\CollectionExpressionTests.cs (2)
27977Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "[]").WithLocation(7, 9), 27980Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "[]").WithLocation(8, 9));
Semantics\ExtensionOperatorsTests.cs (4)
8146Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "null").WithLocation(19, 15), 8149Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "default").WithLocation(20, 15), 8152Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").WithLocation(21, 15), 8155Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "() => 1").WithLocation(22, 16)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (2)
7853Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "x?._F").WithLocation(23, 9), 7856Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "x?._F").WithLocation(24, 11)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (28)
Semantics\DynamicTests.cs (2)
5586Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "Test1(d)").WithLocation(7, 9) 5943Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "Test1(d)").WithLocation(7, 9)
Semantics\ImplicitObjectCreationTests.cs (4)
2370Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").WithLocation(10, 18), 2373Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").WithLocation(11, 18), 2376Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").WithLocation(12, 16), 2379Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").WithLocation(13, 16)
Semantics\NullableReferenceTypesTests.cs (2)
3838Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "null").WithLocation(16, 10), 3841Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "null").WithLocation(17, 10),
Semantics\NullConditionalAssignmentTests.cs (2)
2717Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "c?.F").WithLocation(6, 9), 2720Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "c?.F").WithLocation(7, 11));
Semantics\RefLocalsAndReturnsTests.cs (1)
1502Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "rs.X").WithLocation(17, 9),
Semantics\SemanticErrorTests.cs (15)
13583new ErrorDescription { Code = (int)ErrorCode.ERR_IncrementLvalueExpected, Line = 6, Column = 11 }, 13584new ErrorDescription { Code = (int)ErrorCode.ERR_IncrementLvalueExpected, Line = 7, Column = 9 }); 13616Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local").WithLocation(7, 11), 13619Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local").WithLocation(8, 9), 13622Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "field").WithLocation(9, 11), 13625Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "field").WithLocation(10, 9), 13628Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local + 3").WithLocation(11, 12), 13631Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local + 3").WithLocation(12, 10), 13634Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "2").WithLocation(13, 11), 13637Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "2").WithLocation(14, 9), 13640Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d + 1").WithLocation(17, 10), 13643Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d + 1").WithLocation(18, 12), 13646Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d++").WithLocation(19, 9)); 13665Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "this").WithLocation(6, 11), 13668Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "this").WithLocation(7, 9));
Semantics\TargetTypedDefaultTests.cs (1)
1205Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "default").WithLocation(16, 19),
Semantics\Utf8StringsLiteralsTests.cs (1)
4205Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, @"""d""u8").WithLocation(15, 9)