37 references to ERR_RefProperty
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1739Error(diagnostics, ErrorCode.ERR_RefProperty, node);
Errors\ErrorFacts.cs (1)
783or ErrorCode.ERR_RefProperty
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
FieldKeywordTests.cs (4)
5548Diagnostic(ErrorCode.ERR_RefProperty, "P1").WithLocation(9, 15), 5551Diagnostic(ErrorCode.ERR_RefProperty, "P2").WithLocation(10, 15), 5554Diagnostic(ErrorCode.ERR_RefProperty, "P3").WithLocation(11, 15), 5557Diagnostic(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)
18961Diagnostic(ErrorCode.ERR_RefProperty, "object.Property").WithLocation(1, 18), 18964Diagnostic(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)
35569Diagnostic(ErrorCode.ERR_RefProperty, "Property").WithLocation(14, 15),
Semantics\RefFieldTests.cs (6)
10080Diagnostic(ErrorCode.ERR_RefProperty, "c.N").WithLocation(5, 17), 10083Diagnostic(ErrorCode.ERR_RefProperty, "c[0]").WithLocation(6, 17), 10086Diagnostic(ErrorCode.ERR_RefProperty, "c.N").WithLocation(8, 11), 10089Diagnostic(ErrorCode.ERR_RefProperty, "c[0]").WithLocation(10, 11), 10092Diagnostic(ErrorCode.ERR_RefProperty, "c.N").WithLocation(12, 12), 10095Diagnostic(ErrorCode.ERR_RefProperty, "c[0]").WithLocation(14, 12),
Semantics\RefLocalsAndReturnsTests.cs (2)
3556Diagnostic(ErrorCode.ERR_RefProperty, "P").WithLocation(8, 26)); 3577Diagnostic(ErrorCode.ERR_RefProperty, "this[0]").WithLocation(8, 26));
Semantics\SemanticErrorTests.cs (10)
8068Diagnostic(ErrorCode.ERR_RefProperty, "P").WithLocation(14, 15), 8071Diagnostic(ErrorCode.ERR_RefProperty, "this.Q").WithLocation(15, 15)); 8098Diagnostic(ErrorCode.ERR_RefProperty, "this[0]").WithLocation(13, 15), 8101Diagnostic(ErrorCode.ERR_RefProperty, "this[0]").WithLocation(14, 15)); 23132Diagnostic(ErrorCode.ERR_RefProperty, "ref BarP").WithLocation(18, 43), 23138Diagnostic(ErrorCode.ERR_RefProperty, "ref Program.BarP").WithLocation(20, 43), 23165Diagnostic(ErrorCode.ERR_RefProperty, "BarP").WithLocation(18, 47), 23171Diagnostic(ErrorCode.ERR_RefProperty, "Program.BarP").WithLocation(20, 47), 23283Diagnostic(ErrorCode.ERR_RefProperty, "ref BarP").WithLocation(11, 42), 23292Diagnostic(ErrorCode.ERR_RefProperty, "ref BarP").WithLocation(13, 42),