86 references to ERR_AssgReadonly
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
3344ErrorCode.ERR_AssgReadonly,
Errors\ErrorFacts.cs (1)
772or ErrorCode.ERR_AssgReadonly
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
26265Diagnostic(ErrorCode.ERR_AssgReadonly, "tuple.Item1").WithLocation(8, 9));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
FieldKeywordTests.cs (12)
4603Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(14, 37), 4606Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(15, 32)); 4634Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(14, 37), 4637Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(15, 32)); 4723Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(10, 46)); 4760Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(10, 46)); 4807Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(10, 46)); 5206Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(7, 32), 5209Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(11, 32), 5212Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(15, 23), 5218Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(19, 32), 5221Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(23, 32));
RefReadonlyParameterTests.cs (2)
2954Diagnostic(ErrorCode.ERR_AssgReadonly, "ror").WithLocation(22, 9), 2957Diagnostic(ErrorCode.ERR_AssgReadonly, "rorro").WithLocation(23, 9));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (66)
Semantics\InitOnlyMemberTests.cs (18)
2684Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(11, 9), 2687Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(12, 23), 2690Diagnostic(ErrorCode.ERR_AssgReadonly, "@field").WithLocation(25, 13), 2693Diagnostic(ErrorCode.ERR_AssgReadonly, "@field").WithLocation(30, 13), 2696Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(38, 9), 2699Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(42, 9), 2702Diagnostic(ErrorCode.ERR_AssgReadonly, "@field").WithLocation(48, 13) 2880Diagnostic(ErrorCode.ERR_AssgReadonly, "c.field").WithLocation(9, 9), 2883Diagnostic(ErrorCode.ERR_AssgReadonly, "c.@field").WithLocation(16, 13), 2886Diagnostic(ErrorCode.ERR_AssgReadonly, "c.field").WithLocation(24, 9), 2889Diagnostic(ErrorCode.ERR_AssgReadonly, "c.@field").WithLocation(31, 13), 2892Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(40, 13), 2895Diagnostic(ErrorCode.ERR_AssgReadonly, "c.field").WithLocation(41, 18) 3090Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(6, 9), 3093Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(7, 23), 3096Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(12, 9), 3099Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(13, 23), 3102Diagnostic(ErrorCode.ERR_AssgReadonly, "@field").WithLocation(20, 13)
Semantics\ObjectAndCollectionInitializerTests.cs (1)
1349Diagnostic(ErrorCode.ERR_AssgReadonly, "x").WithLocation(12, 57)
Semantics\ReadOnlyStructsTests.cs (1)
1807Diagnostic(ErrorCode.ERR_AssgReadonly, "s.i").WithLocation(12, 9));
Semantics\RecordStructTests.cs (4)
7891Diagnostic(ErrorCode.ERR_AssgReadonly, "X").WithLocation(2, 17), 7894Diagnostic(ErrorCode.ERR_AssgReadonly, "X").WithLocation(9, 28), 7897Diagnostic(ErrorCode.ERR_AssgReadonly, "X").WithLocation(13, 25), 7900Diagnostic(ErrorCode.ERR_AssgReadonly, "X").WithLocation(18, 25)
Semantics\RefFieldTests.cs (37)
5951Diagnostic(ErrorCode.ERR_AssgReadonly, "x.F3").WithLocation(23, 9), 5954Diagnostic(ErrorCode.ERR_AssgReadonly, "x.F4").WithLocation(24, 9), 5963Diagnostic(ErrorCode.ERR_AssgReadonly, "y.F3").WithLocation(28, 9), 5966Diagnostic(ErrorCode.ERR_AssgReadonly, "y.F4").WithLocation(29, 9)); 7440Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").WithLocation(9, 59), 7443Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").WithLocation(10, 59), 7446Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").WithLocation(11, 75), 7449Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").WithLocation(12, 59), 7452Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").WithLocation(14, 64), 7455Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").WithLocation(15, 64), 7458Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").WithLocation(16, 80), 7461Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").WithLocation(17, 64), 7464Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").WithLocation(19, 80), 7467Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").WithLocation(20, 80), 7470Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").WithLocation(21, 96), 7473Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").WithLocation(22, 80), 7476Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").WithLocation(24, 61), 7479Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").WithLocation(25, 61), 7482Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").WithLocation(26, 77), 7485Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").WithLocation(27, 61)); 7524Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").WithLocation(9, 59), 7527Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").WithLocation(10, 59), 7530Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").WithLocation(11, 75), 7533Diagnostic(ErrorCode.ERR_AssgReadonly, "s.F").WithLocation(12, 59), 7536Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").WithLocation(14, 64), 7539Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").WithLocation(15, 64), 7542Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").WithLocation(16, 80), 7545Diagnostic(ErrorCode.ERR_AssgReadonly, "sRef.F").WithLocation(17, 64), 7548Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").WithLocation(19, 80), 7551Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").WithLocation(20, 80), 7554Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").WithLocation(21, 96), 7557Diagnostic(ErrorCode.ERR_AssgReadonly, "sOut.F").WithLocation(22, 80), 7560Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").WithLocation(24, 61), 7563Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").WithLocation(25, 61), 7566Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").WithLocation(26, 77), 7569Diagnostic(ErrorCode.ERR_AssgReadonly, "sIn.F").WithLocation(27, 61)); 20656Diagnostic(ErrorCode.ERR_AssgReadonly, "field").WithLocation(3, 19)
Semantics\RefLocalsAndReturnsTests.cs (1)
316Diagnostic(ErrorCode.ERR_AssgReadonly, "_ro").WithLocation(15, 47));
Semantics\SemanticAnalyzerTests.cs (1)
711Diagnostic(ErrorCode.ERR_AssgReadonly, "instance_readonly").WithLocation(24, 9),
Semantics\SemanticErrorTests.cs (3)
7390Diagnostic(ErrorCode.ERR_AssgReadonly, "TestInt").WithLocation(28, 9), 7393Diagnostic(ErrorCode.ERR_AssgReadonly, "t.TestInt").WithLocation(11, 9), 7396Diagnostic(ErrorCode.ERR_AssgReadonly, "TestInt").WithLocation(16, 9));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\RequiredMembersTests.cs (3)
1733Diagnostic(ErrorCode.ERR_AssgReadonly, "Field1").WithLocation(3, 26), 1811Diagnostic(ErrorCode.ERR_AssgReadonly, "Field1").WithLocation(3, 26) 1839Diagnostic(ErrorCode.ERR_AssgReadonly, "Field1").WithLocation(4, 26),