42 references to ERR_AutoPropertyCannotBeRefReturning
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1769
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)
5256
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(3, 25),
5259
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P2").WithLocation(4, 25),
5262
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P3").WithLocation(5, 25),
5268
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P4").WithLocation(6, 25),
5274
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P5").WithLocation(7, 25),
5283
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P6").WithLocation(8, 25),
5292
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P8").WithLocation(10, 25),
5301
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P9").WithLocation(11, 25),
5310
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PC").WithLocation(12, 25),
5319
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PD").WithLocation(13, 25),
5328
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PE").WithLocation(14, 25),
5334
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PF").WithLocation(15, 25),
5340
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PG").WithLocation(16, 25),
5349
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PH").WithLocation(17, 25),
5358
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PI").WithLocation(18, 25),
5364
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PJ").WithLocation(19, 25),
5395
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(3, 32),
5398
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P2").WithLocation(4, 32),
5401
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P3").WithLocation(5, 32),
5407
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P5").WithLocation(6, 32),
5416
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P8").WithLocation(8, 32),
5425
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PC").WithLocation(9, 32),
5434
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PE").WithLocation(10, 32),
5440
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PG").WithLocation(11, 32),
5449
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PI").WithLocation(12, 32),
5579
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(3, 16),
5582
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)
67762
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PA").WithLocation(4, 20),
67765
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PB").WithLocation(9, 20),
67771
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),