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