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