13 references to ERR_AutoSetterCantBeReadOnly
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1997
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)
4733
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P3.set").WithLocation(3, 49),
4745
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P6.set").WithLocation(5, 48),
4754
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P9.set").WithLocation(8, 40),
4786
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P3.set").WithLocation(3, 49),
4795
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P6.set").WithLocation(5, 48),
4801
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P9.set").WithLocation(8, 40),
5056
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P2.set").WithLocation(4, 26),
5062
Diagnostic(ErrorCode.
ERR_AutoSetterCantBeReadOnly
, "set").WithArguments("S.P4.set").WithLocation(6, 31),
5068
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),