7 references to WRN_RefReturnOnlyParameter
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder.ValueChecks.cs (1)
1327(checkingReceiver: false, isRefScoped: false, inUnsafeRegion: true, { IsReturnOnly: true }) => (ErrorCode.WRN_RefReturnOnlyParameter, node),
Errors\ErrorFacts.cs (2)
539case ErrorCode.WRN_RefReturnOnlyParameter: 2338or ErrorCode.WRN_RefReturnOnlyParameter
Generated\ErrorFacts.Generated.cs (1)
310case ErrorCode.WRN_RefReturnOnlyParameter:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RefEscapingTests.cs (1)
2241Diagnostic(ErrorCode.WRN_RefReturnOnlyParameter, "arg1").WithArguments("arg1").WithLocation(24, 28)
Semantics\RefFieldTests.cs (1)
28738Diagnostic(ErrorCode.WRN_RefReturnOnlyParameter, "p1").WithArguments("p1").WithLocation(31, 21),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
430case ErrorCode.WRN_RefReturnOnlyParameter: