13 references to ERR_AutoSetterCantBeReadOnly
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1996
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)
4858
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P3.set").WithLocation(3, 49),
4870
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P6.set").WithLocation(5, 48),
4879
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P9.set").WithLocation(8, 40),
4911
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P3.set").WithLocation(3, 49),
4920
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P6.set").WithLocation(5, 48),
4926
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P9.set").WithLocation(8, 40),
5181
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P2.set").WithLocation(4, 26),
5187
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P4.set").WithLocation(6, 31),
5193
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),