72 references to ERR_AssgReadonly
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
2832
ErrorCode.
ERR_AssgReadonly
,
Errors\ErrorFacts.cs (1)
711
case ErrorCode.
ERR_AssgReadonly
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
26303
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "tuple.Item1").WithLocation(8, 9));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (66)
Semantics\InitOnlyMemberTests.cs (18)
2679
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(11, 9),
2682
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(12, 23),
2685
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(25, 13),
2688
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(30, 13),
2691
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(38, 9),
2694
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(42, 9),
2697
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(48, 13)
2875
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "c.field").WithLocation(9, 9),
2878
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "c.field").WithLocation(16, 13),
2881
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "c.field").WithLocation(24, 9),
2884
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "c.field").WithLocation(31, 13),
2887
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(40, 13),
2890
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "c.field").WithLocation(41, 18)
3085
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(6, 9),
3088
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(7, 23),
3091
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(12, 9),
3094
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(13, 23),
3097
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "field").WithLocation(20, 13)
Semantics\ObjectAndCollectionInitializerTests.cs (1)
1344
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)
7779
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "X").WithLocation(2, 17),
7782
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "X").WithLocation(9, 28),
7785
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "X").WithLocation(13, 25),
7788
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "X").WithLocation(18, 25)
Semantics\RefFieldTests.cs (37)
5521
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "x.F3").WithLocation(23, 9),
5524
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "x.F4").WithLocation(24, 9),
5533
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "y.F3").WithLocation(28, 9),
5536
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "y.F4").WithLocation(29, 9));
6986
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "s.F").WithLocation(9, 59),
6989
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "s.F").WithLocation(10, 59),
6992
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "s.F").WithLocation(11, 75),
6995
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "s.F").WithLocation(12, 59),
6998
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sRef.F").WithLocation(14, 64),
7001
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sRef.F").WithLocation(15, 64),
7004
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sRef.F").WithLocation(16, 80),
7007
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sRef.F").WithLocation(17, 64),
7010
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sOut.F").WithLocation(19, 80),
7013
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sOut.F").WithLocation(20, 80),
7016
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sOut.F").WithLocation(21, 96),
7019
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sOut.F").WithLocation(22, 80),
7022
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sIn.F").WithLocation(24, 61),
7025
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sIn.F").WithLocation(25, 61),
7028
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sIn.F").WithLocation(26, 77),
7031
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sIn.F").WithLocation(27, 61));
7070
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "s.F").WithLocation(9, 59),
7073
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "s.F").WithLocation(10, 59),
7076
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "s.F").WithLocation(11, 75),
7079
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "s.F").WithLocation(12, 59),
7082
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sRef.F").WithLocation(14, 64),
7085
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sRef.F").WithLocation(15, 64),
7088
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sRef.F").WithLocation(16, 80),
7091
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sRef.F").WithLocation(17, 64),
7094
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sOut.F").WithLocation(19, 80),
7097
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sOut.F").WithLocation(20, 80),
7100
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sOut.F").WithLocation(21, 96),
7103
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sOut.F").WithLocation(22, 80),
7106
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sIn.F").WithLocation(24, 61),
7109
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sIn.F").WithLocation(25, 61),
7112
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sIn.F").WithLocation(26, 77),
7115
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "sIn.F").WithLocation(27, 61));
20040
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)
7386
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "TestInt").WithLocation(28, 9),
7389
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "t.TestInt").WithLocation(11, 9),
7392
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "TestInt").WithLocation(16, 9));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\RequiredMembersTests.cs (3)
1749
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "Field1").WithLocation(3, 26),
1794
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "Field1").WithLocation(3, 26)
1822
Diagnostic(ErrorCode.
ERR_AssgReadonly
, "Field1").WithLocation(4, 26),