42 references to ERR_AutoPropertyCannotBeRefReturning
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1770
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)
5257
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(3, 25),
5260
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P2").WithLocation(4, 25),
5263
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P3").WithLocation(5, 25),
5269
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P4").WithLocation(6, 25),
5275
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P5").WithLocation(7, 25),
5284
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P6").WithLocation(8, 25),
5293
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P8").WithLocation(10, 25),
5302
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P9").WithLocation(11, 25),
5311
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PC").WithLocation(12, 25),
5320
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PD").WithLocation(13, 25),
5329
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PE").WithLocation(14, 25),
5335
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PF").WithLocation(15, 25),
5341
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PG").WithLocation(16, 25),
5350
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PH").WithLocation(17, 25),
5359
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PI").WithLocation(18, 25),
5365
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PJ").WithLocation(19, 25),
5396
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(3, 32),
5399
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P2").WithLocation(4, 32),
5402
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P3").WithLocation(5, 32),
5408
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P5").WithLocation(6, 32),
5417
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P8").WithLocation(8, 32),
5426
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PC").WithLocation(9, 32),
5435
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PE").WithLocation(10, 32),
5441
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PG").WithLocation(11, 32),
5450
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "PI").WithLocation(12, 32),
5580
Diagnostic(ErrorCode.
ERR_AutoPropertyCannotBeRefReturning
, "P1").WithLocation(3, 16),
5583
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),