13 references to WRN_RefAssignNarrower
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Statements.cs (1)
1578
(_, true) => ErrorCode.
WRN_RefAssignNarrower
Errors\ErrorFacts.cs (2)
529
case ErrorCode.
WRN_RefAssignNarrower
:
2328
or ErrorCode.
WRN_RefAssignNarrower
Generated\ErrorFacts.Generated.cs (1)
300
case ErrorCode.
WRN_RefAssignNarrower
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\RefFieldTests.cs (5)
28709
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(7, 5),
28712
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(13, 5),
28715
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(19, 5),
28858
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p.refField = ref this.field").WithArguments("refField", "this.field").WithLocation(13, 9),
28927
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(6, 9),
Semantics\RefLocalsAndReturnsTests.cs (3)
836
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "x = ref y").WithArguments("x", "y").WithLocation(7, 9),
839
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "x = ref z").WithArguments("x", "z").WithLocation(10, 9)
2530
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "outer = ref r").WithArguments("outer", "r").WithLocation(16, 13)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
409
case ErrorCode.
WRN_RefAssignNarrower
: