28 references to ERR_IncrementLvalueExpected
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder.ValueChecks.cs (3)
793if (errorCode is ErrorCode.ERR_InvalidAddrOp or ErrorCode.ERR_IncrementLvalueExpected or ErrorCode.ERR_RefReturnThis or ErrorCode.ERR_RefLocalOrParamExpected or ErrorCode.ERR_RefLvalueExpected) 2712return isValueType ? ErrorCode.ERR_AssgReadonlyLocal : ErrorCode.ERR_IncrementLvalueExpected; 2781return ErrorCode.ERR_IncrementLvalueExpected;
Errors\ErrorFacts.cs (1)
1118case ErrorCode.ERR_IncrementLvalueExpected:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (24)
Semantics\ImplicitObjectCreationTests.cs (4)
2374Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").WithLocation(10, 18), 2377Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").WithLocation(11, 18), 2380Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").WithLocation(12, 16), 2383Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").WithLocation(13, 16)
Semantics\NullableReferenceTypesTests.cs (2)
3826Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "null").WithLocation(16, 10), 3829Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "null").WithLocation(17, 10),
Semantics\RefLocalsAndReturnsTests.cs (1)
1401Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "rs.X").WithLocation(17, 9),
Semantics\SemanticErrorTests.cs (15)
13425new ErrorDescription { Code = (int)ErrorCode.ERR_IncrementLvalueExpected, Line = 6, Column = 11 }, 13426new ErrorDescription { Code = (int)ErrorCode.ERR_IncrementLvalueExpected, Line = 7, Column = 9 }); 13458Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local").WithLocation(7, 11), 13461Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local").WithLocation(8, 9), 13464Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "field").WithLocation(9, 11), 13467Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "field").WithLocation(10, 9), 13470Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local + 3").WithLocation(11, 12), 13473Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local + 3").WithLocation(12, 10), 13476Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "2").WithLocation(13, 11), 13479Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "2").WithLocation(14, 9), 13482Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d + 1").WithLocation(17, 10), 13485Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d + 1").WithLocation(18, 12), 13488Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d++").WithLocation(19, 9)); 13507Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "this").WithLocation(6, 11), 13510Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "this").WithLocation(7, 9));
Semantics\TargetTypedDefaultTests.cs (1)
1205Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "default").WithLocation(16, 19),
Semantics\Utf8StringsLiteralsTests.cs (1)
4187Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, @"""d""u8").WithLocation(15, 9)