42 references to ERR_AutoPropertyCannotBeRefReturning
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1768
or ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
Symbols\Source\SourcePropertySymbolBase.cs (1)
907
diagnostics.Add(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, Location);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (27)
FieldKeywordTests.cs (27)
5381
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(3, 25),
5384
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P2").WithLocation(4, 25),
5387
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P3").WithLocation(5, 25),
5393
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P4").WithLocation(6, 25),
5399
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P5").WithLocation(7, 25),
5408
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P6").WithLocation(8, 25),
5417
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P8").WithLocation(10, 25),
5426
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P9").WithLocation(11, 25),
5435
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PC").WithLocation(12, 25),
5444
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PD").WithLocation(13, 25),
5453
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PE").WithLocation(14, 25),
5459
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PF").WithLocation(15, 25),
5465
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PG").WithLocation(16, 25),
5474
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PH").WithLocation(17, 25),
5483
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PI").WithLocation(18, 25),
5489
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PJ").WithLocation(19, 25),
5520
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(3, 32),
5523
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P2").WithLocation(4, 32),
5526
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P3").WithLocation(5, 32),
5532
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P5").WithLocation(6, 32),
5541
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P8").WithLocation(8, 32),
5550
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PC").WithLocation(9, 32),
5559
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PE").WithLocation(10, 32),
5565
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PG").WithLocation(11, 32),
5574
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PI").WithLocation(12, 32),
5704
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(3, 16),
5707
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P2").WithLocation(8, 25));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\InitOnlyMemberTests.cs (2)
1413
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "Property1").WithLocation(4, 13),
1419
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "Property2").WithLocation(5, 13),
Semantics\RefFieldTests.cs (6)
9930
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P0").WithLocation(4, 18),
9933
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(5, 18),
9939
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P2").WithLocation(6, 18),
10001
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P0").WithLocation(4, 27),
10004
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(5, 27),
10010
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P2").WithLocation(6, 27),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\DefaultInterfaceImplementationTests.cs (3)
67758
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PA").WithLocation(4, 20),
67761
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PB").WithLocation(9, 20),
67767
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PC").WithLocation(14, 20),
Symbols\Source\PropertyTests.cs (2)
318
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P").WithLocation(3, 20));
332
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(4, 29),