13 references to ERR_AutoSetterCantBeReadOnly
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1998
or ErrorCode.
ERR_AutoSetterCantBeReadOnly
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
570
diagnostics.Add(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, location, this);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
FieldKeywordTests.cs (9)
4734
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P3.set").WithLocation(3, 49),
4746
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P6.set").WithLocation(5, 48),
4755
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P9.set").WithLocation(8, 40),
4787
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P3.set").WithLocation(3, 49),
4796
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P6.set").WithLocation(5, 48),
4802
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P9.set").WithLocation(8, 40),
5057
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P2.set").WithLocation(4, 26),
5063
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P4.set").WithLocation(6, 31),
5069
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P5.set").WithLocation(7, 40),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\ReadOnlyStructsTests.cs (2)
1581
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P4.set").WithLocation(7, 44),
1593
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P7.set").WithLocation(10, 35),