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