8 references to IsReturnOnly
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.ValueChecks.cs (6)
1223{ IsReturnOnly: true } => EscapeLevel.ReturnOnly, 1280Debug.Assert(parameterSymbol.RefKind == RefKind.None || isRefScoped || refSafeToEscape.IsReturnOnly); 1294(checkingReceiver: true, isRefScoped: false, inUnsafeRegion: false, { IsReturnOnly: true }) => (ErrorCode.ERR_RefReturnOnlyParameter2, parameter.Syntax), 1295(checkingReceiver: true, isRefScoped: false, inUnsafeRegion: true, { IsReturnOnly: true }) => (ErrorCode.WRN_RefReturnOnlyParameter2, parameter.Syntax), 1300(checkingReceiver: false, isRefScoped: false, inUnsafeRegion: false, { IsReturnOnly: true }) => (ErrorCode.ERR_RefReturnOnlyParameter, node), 1301(checkingReceiver: false, isRefScoped: false, inUnsafeRegion: true, { IsReturnOnly: true }) => (ErrorCode.WRN_RefReturnOnlyParameter, node),
Binder\Binder_Statements.cs (2)
1558({ IsReturnOnly: true }, false) => ErrorCode.ERR_RefAssignReturnOnly, 1559({ IsReturnOnly: true }, true) => ErrorCode.WRN_RefAssignReturnOnly,