37 references to ERR_RefProperty
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
2018Error(diagnostics, ErrorCode.ERR_RefProperty, node);
Errors\ErrorFacts.cs (1)
795or ErrorCode.ERR_RefProperty
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
FieldKeywordTests.cs (4)
5673Diagnostic(ErrorCode.ERR_RefProperty, "P1").WithLocation(9, 15), 5676Diagnostic(ErrorCode.ERR_RefProperty, "P2").WithLocation(10, 15), 5679Diagnostic(ErrorCode.ERR_RefProperty, "P3").WithLocation(11, 15), 5682Diagnostic(ErrorCode.ERR_RefProperty, "P4").WithLocation(12, 15));
FlowAnalysis\FlowDiagnosticTests.cs (8)
1761Diagnostic(ErrorCode.ERR_RefProperty, "x1").WithLocation(15, 17), 1764Diagnostic(ErrorCode.ERR_RefProperty, "x1").WithLocation(16, 17), 1767Diagnostic(ErrorCode.ERR_RefProperty, "x2").WithLocation(17, 17), 1770Diagnostic(ErrorCode.ERR_RefProperty, "x2").WithLocation(18, 17), 1792Diagnostic(ErrorCode.ERR_RefProperty, "x1").WithLocation(15, 17), 1795Diagnostic(ErrorCode.ERR_RefProperty, "x1").WithLocation(16, 17), 1798Diagnostic(ErrorCode.ERR_RefProperty, "x2").WithLocation(17, 17), 1801Diagnostic(ErrorCode.ERR_RefProperty, "x2").WithLocation(18, 17),
Semantics\ExtensionTests.cs (2)
20493Diagnostic(ErrorCode.ERR_RefProperty, "object.Property").WithLocation(1, 18), 20496Diagnostic(ErrorCode.ERR_RefProperty, "object.Property").WithLocation(2, 18));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\ArglistTests.cs (1)
234Diagnostic(ErrorCode.ERR_RefProperty, "P").WithLocation(10, 40),
Semantics\InitOnlyMemberTests.cs (1)
1285Diagnostic(ErrorCode.ERR_RefProperty, "Property").WithLocation(8, 16)
Semantics\NullableReferenceTypesTests.cs (1)
35598Diagnostic(ErrorCode.ERR_RefProperty, "Property").WithLocation(14, 15),
Semantics\RefFieldTests.cs (6)
10152Diagnostic(ErrorCode.ERR_RefProperty, "c.N").WithLocation(5, 17), 10155Diagnostic(ErrorCode.ERR_RefProperty, "c[0]").WithLocation(6, 17), 10158Diagnostic(ErrorCode.ERR_RefProperty, "c.N").WithLocation(8, 11), 10161Diagnostic(ErrorCode.ERR_RefProperty, "c[0]").WithLocation(10, 11), 10164Diagnostic(ErrorCode.ERR_RefProperty, "c.N").WithLocation(12, 12), 10167Diagnostic(ErrorCode.ERR_RefProperty, "c[0]").WithLocation(14, 12),
Semantics\RefLocalsAndReturnsTests.cs (2)
3553Diagnostic(ErrorCode.ERR_RefProperty, "P").WithLocation(8, 26)); 3574Diagnostic(ErrorCode.ERR_RefProperty, "this[0]").WithLocation(8, 26));
Semantics\SemanticErrorTests.cs (10)
8113Diagnostic(ErrorCode.ERR_RefProperty, "P").WithLocation(14, 15), 8116Diagnostic(ErrorCode.ERR_RefProperty, "this.Q").WithLocation(15, 15)); 8143Diagnostic(ErrorCode.ERR_RefProperty, "this[0]").WithLocation(13, 15), 8146Diagnostic(ErrorCode.ERR_RefProperty, "this[0]").WithLocation(14, 15)); 23202Diagnostic(ErrorCode.ERR_RefProperty, "ref BarP").WithLocation(18, 43), 23208Diagnostic(ErrorCode.ERR_RefProperty, "ref Program.BarP").WithLocation(20, 43), 23235Diagnostic(ErrorCode.ERR_RefProperty, "BarP").WithLocation(18, 47), 23241Diagnostic(ErrorCode.ERR_RefProperty, "Program.BarP").WithLocation(20, 47), 23353Diagnostic(ErrorCode.ERR_RefProperty, "ref BarP").WithLocation(11, 42), 23362Diagnostic(ErrorCode.ERR_RefProperty, "ref BarP").WithLocation(13, 42),