7 references to WRN_RefReturnOnlyParameter
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder.ValueChecks.cs (1)
1106(checkingReceiver: false, isRefScoped: false, inUnsafeRegion: true, ReturnOnlyScope) => (ErrorCode.WRN_RefReturnOnlyParameter, node),
Errors\ErrorFacts.cs (2)
526case ErrorCode.WRN_RefReturnOnlyParameter: 2283case ErrorCode.WRN_RefReturnOnlyParameter:
Generated\ErrorFacts.Generated.cs (1)
310case ErrorCode.WRN_RefReturnOnlyParameter:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RefEscapingTests.cs (1)
2235Diagnostic(ErrorCode.WRN_RefReturnOnlyParameter, "arg1").WithArguments("arg1").WithLocation(24, 28)
Semantics\RefFieldTests.cs (1)
27366Diagnostic(ErrorCode.WRN_RefReturnOnlyParameter, "p1").WithArguments("p1").WithLocation(31, 21),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
408case ErrorCode.WRN_RefReturnOnlyParameter: