40 references to ERR_IncrementLvalueExpected
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder.ValueChecks.cs (3)
1005
if (errorCode is ErrorCode.ERR_InvalidAddrOp or ErrorCode.
ERR_IncrementLvalueExpected
or ErrorCode.ERR_RefReturnThis or ErrorCode.ERR_RefLocalOrParamExpected or ErrorCode.ERR_RefLvalueExpected)
3224
return isValueType ? ErrorCode.ERR_AssgReadonlyLocal : ErrorCode.
ERR_IncrementLvalueExpected
;
3293
return ErrorCode.
ERR_IncrementLvalueExpected
;
Errors\ErrorFacts.cs (1)
1180
or ErrorCode.
ERR_IncrementLvalueExpected
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\CollectionExpressionTests.cs (2)
27974
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "[]").WithLocation(7, 9),
27977
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "[]").WithLocation(8, 9));
Semantics\ExtensionOperatorsTests.cs (4)
8103
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "null").WithLocation(19, 15),
8106
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "default").WithLocation(20, 15),
8109
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "new()").WithLocation(21, 15),
8112
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "() => 1").WithLocation(22, 16)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (2)
7853
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "x?._F").WithLocation(23, 9),
7856
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "x?._F").WithLocation(24, 11)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (28)
Semantics\DynamicTests.cs (2)
5586
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "Test1(d)").WithLocation(7, 9)
5943
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "Test1(d)").WithLocation(7, 9)
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)
3838
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "null").WithLocation(16, 10),
3841
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "null").WithLocation(17, 10),
Semantics\NullConditionalAssignmentTests.cs (2)
2717
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "c?.F").WithLocation(6, 9),
2720
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "c?.F").WithLocation(7, 11));
Semantics\RefLocalsAndReturnsTests.cs (1)
1502
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "rs.X").WithLocation(17, 9),
Semantics\SemanticErrorTests.cs (15)
13538
new ErrorDescription { Code = (int)ErrorCode.
ERR_IncrementLvalueExpected
, Line = 6, Column = 11 },
13539
new ErrorDescription { Code = (int)ErrorCode.
ERR_IncrementLvalueExpected
, Line = 7, Column = 9 });
13571
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "local").WithLocation(7, 11),
13574
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "local").WithLocation(8, 9),
13577
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "field").WithLocation(9, 11),
13580
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "field").WithLocation(10, 9),
13583
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "local + 3").WithLocation(11, 12),
13586
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "local + 3").WithLocation(12, 10),
13589
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "2").WithLocation(13, 11),
13592
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "2").WithLocation(14, 9),
13595
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "d + 1").WithLocation(17, 10),
13598
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "d + 1").WithLocation(18, 12),
13601
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "d++").WithLocation(19, 9));
13620
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, "this").WithLocation(6, 11),
13623
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)
4205
Diagnostic(ErrorCode.
ERR_IncrementLvalueExpected
, @"""d""u8").WithLocation(15, 9)