13 references to WRN_RefAssignNarrower
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Statements.cs (1)
1568
(_, true) => ErrorCode.
WRN_RefAssignNarrower
Errors\ErrorFacts.cs (2)
517
case ErrorCode.
WRN_RefAssignNarrower
:
2274
case ErrorCode.
WRN_RefAssignNarrower
:
Generated\ErrorFacts.Generated.cs (1)
301
case ErrorCode.
WRN_RefAssignNarrower
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\RefFieldTests.cs (5)
27348
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(7, 5),
27351
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(13, 5),
27354
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p2.refField = ref p1.field").WithArguments("refField", "p1.field").WithLocation(19, 5),
27497
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "p.refField = ref this.field").WithArguments("refField", "this.field").WithLocation(13, 9),
27566
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)
2432
Diagnostic(ErrorCode.
WRN_RefAssignNarrower
, "outer = ref r").WithArguments("outer", "r").WithLocation(16, 13)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
399
case ErrorCode.
WRN_RefAssignNarrower
: