33 references to ERR_RefPropertyCannotHaveSetAccessor
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1772
or ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
Symbols\Source\SourcePropertySymbolBase.cs (1)
944
diagnostics.Add(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, _setMethod.GetFirstLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (19)
FieldKeywordTests.cs (18)
5266
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(5, 48),
5272
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "init").WithLocation(6, 48),
5281
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(7, 48),
5290
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "init").WithLocation(8, 48),
5299
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(10, 49),
5308
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "init").WithLocation(11, 49),
5317
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(12, 49),
5326
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "init").WithLocation(13, 49),
5332
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(14, 35),
5338
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "init").WithLocation(15, 35),
5347
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(16, 35),
5356
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "init").WithLocation(17, 35),
5405
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(5, 55),
5414
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(6, 55),
5423
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(8, 56),
5432
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(9, 56),
5438
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(10, 42),
5447
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(11, 42),
Semantics\RecordTests.cs (1)
9705
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(9, 9),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\InitOnlyMemberTests.cs (2)
1416
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "init").WithLocation(4, 30),
1425
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "init").WithLocation(6, 44),
Semantics\RefFieldTests.cs (5)
9936
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(5, 28),
9945
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "init").WithLocation(6, 28),
10007
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(5, 37),
10016
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "init").WithLocation(6, 37),
20788
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(14, 50)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\DefaultInterfaceImplementationTests.cs (3)
67764
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(9, 30),
67800
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(9, 23),
67839
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(9, 30),
Symbols\Source\PropertyTests.cs (2)
335
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(4, 39));
2933
Diagnostic(ErrorCode.
ERR_RefPropertyCannotHaveSetAccessor
, "set").WithLocation(5, 48));