6 references to WRN_RefReturnScopedParameter2
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder.ValueChecks.cs (1)
1319(checkingReceiver: true, isRefScoped: true, inUnsafeRegion: true, _) => (ErrorCode.WRN_RefReturnScopedParameter2, parameter.Syntax),
Errors\ErrorFacts.cs (2)
535case ErrorCode.WRN_RefReturnScopedParameter2: 2334or ErrorCode.WRN_RefReturnScopedParameter2
Generated\ErrorFacts.Generated.cs (1)
306case ErrorCode.WRN_RefReturnScopedParameter2:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\RefFieldTests.cs (1)
18926Diagnostic(ErrorCode.WRN_RefReturnScopedParameter2, "r3").WithArguments("r3").WithLocation(10, 51));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
426case ErrorCode.WRN_RefReturnScopedParameter2: