37 references to ERR_RefProperty
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1739
Error(diagnostics, ErrorCode.
ERR_RefProperty
, node);
Errors\ErrorFacts.cs (1)
783
or ErrorCode.
ERR_RefProperty
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
FieldKeywordTests.cs (4)
5548
Diagnostic(ErrorCode.
ERR_RefProperty
, "P1").WithLocation(9, 15),
5551
Diagnostic(ErrorCode.
ERR_RefProperty
, "P2").WithLocation(10, 15),
5554
Diagnostic(ErrorCode.
ERR_RefProperty
, "P3").WithLocation(11, 15),
5557
Diagnostic(ErrorCode.
ERR_RefProperty
, "P4").WithLocation(12, 15));
FlowAnalysis\FlowDiagnosticTests.cs (8)
1761
Diagnostic(ErrorCode.
ERR_RefProperty
, "x1").WithLocation(15, 17),
1764
Diagnostic(ErrorCode.
ERR_RefProperty
, "x1").WithLocation(16, 17),
1767
Diagnostic(ErrorCode.
ERR_RefProperty
, "x2").WithLocation(17, 17),
1770
Diagnostic(ErrorCode.
ERR_RefProperty
, "x2").WithLocation(18, 17),
1792
Diagnostic(ErrorCode.
ERR_RefProperty
, "x1").WithLocation(15, 17),
1795
Diagnostic(ErrorCode.
ERR_RefProperty
, "x1").WithLocation(16, 17),
1798
Diagnostic(ErrorCode.
ERR_RefProperty
, "x2").WithLocation(17, 17),
1801
Diagnostic(ErrorCode.
ERR_RefProperty
, "x2").WithLocation(18, 17),
Semantics\ExtensionTests.cs (2)
18961
Diagnostic(ErrorCode.
ERR_RefProperty
, "object.Property").WithLocation(1, 18),
18964
Diagnostic(ErrorCode.
ERR_RefProperty
, "object.Property").WithLocation(2, 18));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\ArglistTests.cs (1)
234
Diagnostic(ErrorCode.
ERR_RefProperty
, "P").WithLocation(10, 40),
Semantics\InitOnlyMemberTests.cs (1)
1285
Diagnostic(ErrorCode.
ERR_RefProperty
, "Property").WithLocation(8, 16)
Semantics\NullableReferenceTypesTests.cs (1)
35569
Diagnostic(ErrorCode.
ERR_RefProperty
, "Property").WithLocation(14, 15),
Semantics\RefFieldTests.cs (6)
10080
Diagnostic(ErrorCode.
ERR_RefProperty
, "c.N").WithLocation(5, 17),
10083
Diagnostic(ErrorCode.
ERR_RefProperty
, "c[0]").WithLocation(6, 17),
10086
Diagnostic(ErrorCode.
ERR_RefProperty
, "c.N").WithLocation(8, 11),
10089
Diagnostic(ErrorCode.
ERR_RefProperty
, "c[0]").WithLocation(10, 11),
10092
Diagnostic(ErrorCode.
ERR_RefProperty
, "c.N").WithLocation(12, 12),
10095
Diagnostic(ErrorCode.
ERR_RefProperty
, "c[0]").WithLocation(14, 12),
Semantics\RefLocalsAndReturnsTests.cs (2)
3556
Diagnostic(ErrorCode.
ERR_RefProperty
, "P").WithLocation(8, 26));
3577
Diagnostic(ErrorCode.
ERR_RefProperty
, "this[0]").WithLocation(8, 26));
Semantics\SemanticErrorTests.cs (10)
8068
Diagnostic(ErrorCode.
ERR_RefProperty
, "P").WithLocation(14, 15),
8071
Diagnostic(ErrorCode.
ERR_RefProperty
, "this.Q").WithLocation(15, 15));
8098
Diagnostic(ErrorCode.
ERR_RefProperty
, "this[0]").WithLocation(13, 15),
8101
Diagnostic(ErrorCode.
ERR_RefProperty
, "this[0]").WithLocation(14, 15));
23132
Diagnostic(ErrorCode.
ERR_RefProperty
, "ref BarP").WithLocation(18, 43),
23138
Diagnostic(ErrorCode.
ERR_RefProperty
, "ref Program.BarP").WithLocation(20, 43),
23165
Diagnostic(ErrorCode.
ERR_RefProperty
, "BarP").WithLocation(18, 47),
23171
Diagnostic(ErrorCode.
ERR_RefProperty
, "Program.BarP").WithLocation(20, 47),
23283
Diagnostic(ErrorCode.
ERR_RefProperty
, "ref BarP").WithLocation(11, 42),
23292
Diagnostic(ErrorCode.
ERR_RefProperty
, "ref BarP").WithLocation(13, 42),