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