13 references to WRN_RefAssignNarrower
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Statements.cs (1)
1573
(_, true) => ErrorCode.
WRN_RefAssignNarrower
Errors\ErrorFacts.cs (2)
530
case ErrorCode.
WRN_RefAssignNarrower
:
2329
or ErrorCode.
WRN_RefAssignNarrower
Generated\ErrorFacts.Generated.cs (1)
301
case ErrorCode.
WRN_RefAssignNarrower
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\RefFieldTests.cs (5)
28720
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(7, 5),
28723
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(13, 5),
28726
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(19, 5),
28869
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p.refField = ref this.field").WithArguments("refField", "this.field").WithLocation(13, 9),
28938
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(6, 9),
Semantics\RefLocalsAndReturnsTests.cs (3)
839
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "x = ref y").WithArguments("x", "y").WithLocation(7, 9),
842
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "x = ref z").WithArguments("x", "z").WithLocation(10, 9)
2533
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "outer = ref r").WithArguments("outer", "r").WithLocation(16, 13)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
421
case ErrorCode.
WRN_RefAssignNarrower
: