9 references to WRN_RefReturnScopedParameter
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder.ValueChecks.cs (1)
1104(checkingReceiver: false, isRefScoped: true, inUnsafeRegion: true, _) => (ErrorCode.WRN_RefReturnScopedParameter, node),
Errors\ErrorFacts.cs (2)
520case ErrorCode.WRN_RefReturnScopedParameter: 2277case ErrorCode.WRN_RefReturnScopedParameter:
Generated\ErrorFacts.Generated.cs (1)
304case ErrorCode.WRN_RefReturnScopedParameter:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\RefEscapingTests.cs (2)
845Diagnostic(ErrorCode.WRN_RefReturnScopedParameter, "x").WithArguments("x").WithLocation(13, 20)); 1021Diagnostic(ErrorCode.WRN_RefReturnScopedParameter, "x").WithArguments("x").WithLocation(26, 20)
Semantics\RefFieldTests.cs (2)
27369Diagnostic(ErrorCode.WRN_RefReturnScopedParameter, "p1").WithArguments("p1").WithLocation(41, 21), 27372Diagnostic(ErrorCode.WRN_RefReturnScopedParameter, "p").WithArguments("p").WithLocation(46, 40)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
402case ErrorCode.WRN_RefReturnScopedParameter: