40 references to ERR_IncrementLvalueExpected
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder.ValueChecks.cs (3)
1005if (errorCode is ErrorCode.ERR_InvalidAddrOp or ErrorCode.ERR_IncrementLvalueExpected or ErrorCode.ERR_RefReturnThis or ErrorCode.ERR_RefLocalOrParamExpected or ErrorCode.ERR_RefLvalueExpected) 3224return isValueType ? ErrorCode.ERR_AssgReadonlyLocal : ErrorCode.ERR_IncrementLvalueExpected; 3293return ErrorCode.ERR_IncrementLvalueExpected;
Errors\ErrorFacts.cs (1)
1180or ErrorCode.ERR_IncrementLvalueExpected
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\CollectionExpressionTests.cs (2)
27974Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "[]").WithLocation(7, 9), 27977Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "[]").WithLocation(8, 9));
Semantics\ExtensionOperatorsTests.cs (4)
8103Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "null").WithLocation(19, 15), 8106Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "default").WithLocation(20, 15), 8109Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "new()").WithLocation(21, 15), 8112Diagnostic(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)
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)
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)
13538new ErrorDescription { Code = (int)ErrorCode.ERR_IncrementLvalueExpected, Line = 6, Column = 11 }, 13539new ErrorDescription { Code = (int)ErrorCode.ERR_IncrementLvalueExpected, Line = 7, Column = 9 }); 13571Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local").WithLocation(7, 11), 13574Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local").WithLocation(8, 9), 13577Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "field").WithLocation(9, 11), 13580Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "field").WithLocation(10, 9), 13583Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local + 3").WithLocation(11, 12), 13586Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "local + 3").WithLocation(12, 10), 13589Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "2").WithLocation(13, 11), 13592Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "2").WithLocation(14, 9), 13595Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d + 1").WithLocation(17, 10), 13598Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d + 1").WithLocation(18, 12), 13601Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "d++").WithLocation(19, 9)); 13620Diagnostic(ErrorCode.ERR_IncrementLvalueExpected, "this").WithLocation(6, 11), 13623Diagnostic(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)