31 references to ERR_RefProperty
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.ValueChecks.cs (1)
1495
Error(diagnostics, ErrorCode.
ERR_RefProperty
, node);
Errors\ErrorFacts.cs (1)
722
case ErrorCode.
ERR_RefProperty
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
FlowAnalysis\FlowDiagnosticTests.cs (8)
1743
Diagnostic(ErrorCode.
ERR_RefProperty
, "x1").WithLocation(15, 17),
1746
Diagnostic(ErrorCode.
ERR_RefProperty
, "x1").WithLocation(16, 17),
1749
Diagnostic(ErrorCode.
ERR_RefProperty
, "x2").WithLocation(17, 17),
1752
Diagnostic(ErrorCode.
ERR_RefProperty
, "x2").WithLocation(18, 17),
1774
Diagnostic(ErrorCode.
ERR_RefProperty
, "x1").WithLocation(15, 17),
1777
Diagnostic(ErrorCode.
ERR_RefProperty
, "x1").WithLocation(16, 17),
1780
Diagnostic(ErrorCode.
ERR_RefProperty
, "x2").WithLocation(17, 17),
1783
Diagnostic(ErrorCode.
ERR_RefProperty
, "x2").WithLocation(18, 17),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\ArglistTests.cs (1)
234
Diagnostic(ErrorCode.
ERR_RefProperty
, "P").WithLocation(10, 40),
Semantics\InitOnlyMemberTests.cs (1)
1283
Diagnostic(ErrorCode.
ERR_RefProperty
, "Property").WithLocation(8, 16)
Semantics\NullableReferenceTypesTests.cs (1)
33631
Diagnostic(ErrorCode.
ERR_RefProperty
, "Property").WithLocation(14, 15),
Semantics\RefFieldTests.cs (6)
9571
Diagnostic(ErrorCode.
ERR_RefProperty
, "c.N").WithLocation(5, 17),
9574
Diagnostic(ErrorCode.
ERR_RefProperty
, "c[0]").WithLocation(6, 17),
9577
Diagnostic(ErrorCode.
ERR_RefProperty
, "c.N").WithLocation(8, 11),
9580
Diagnostic(ErrorCode.
ERR_RefProperty
, "c[0]").WithLocation(10, 11),
9583
Diagnostic(ErrorCode.
ERR_RefProperty
, "c.N").WithLocation(12, 12),
9586
Diagnostic(ErrorCode.
ERR_RefProperty
, "c[0]").WithLocation(14, 12)
Semantics\RefLocalsAndReturnsTests.cs (2)
3183
Diagnostic(ErrorCode.
ERR_RefProperty
, "P").WithLocation(8, 26));
3204
Diagnostic(ErrorCode.
ERR_RefProperty
, "this[0]").WithLocation(8, 26));
Semantics\SemanticErrorTests.cs (10)
8064
Diagnostic(ErrorCode.
ERR_RefProperty
, "P").WithLocation(14, 15),
8067
Diagnostic(ErrorCode.
ERR_RefProperty
, "this.Q").WithLocation(15, 15));
8094
Diagnostic(ErrorCode.
ERR_RefProperty
, "this[0]").WithLocation(13, 15),
8097
Diagnostic(ErrorCode.
ERR_RefProperty
, "this[0]").WithLocation(14, 15));
22876
Diagnostic(ErrorCode.
ERR_RefProperty
, "ref BarP").WithLocation(18, 43),
22882
Diagnostic(ErrorCode.
ERR_RefProperty
, "ref Program.BarP").WithLocation(20, 43),
22909
Diagnostic(ErrorCode.
ERR_RefProperty
, "BarP").WithLocation(18, 47),
22915
Diagnostic(ErrorCode.
ERR_RefProperty
, "Program.BarP").WithLocation(20, 47),
23027
Diagnostic(ErrorCode.
ERR_RefProperty
, "ref BarP").WithLocation(11, 42),
23036
Diagnostic(ErrorCode.
ERR_RefProperty
, "ref BarP").WithLocation(13, 42),