/IronPython_2_0/Src/Microsoft.Scripting.Core/Com/ReturnBuilder.cs
C# | 51 lines | 23 code | 10 blank | 18 comment | 1 complexity | 9eda3e319a2f243e47a906735d4d9a5a MD5 | raw file
Possible License(s): GPL-2.0, MPL-2.0-no-copyleft-exception, CPL-1.0, CC-BY-SA-3.0, BSD-3-Clause, ISC, AGPL-3.0, LGPL-2.1, Apache-2.0
- /* ****************************************************************************
- *
- * Copyright (c) Microsoft Corporation.
- *
- * This source code is subject to terms and conditions of the Microsoft Public License. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Microsoft Public License, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
- * by the terms of the Microsoft Public License.
- *
- * You must not remove this notice, or any other, from this software.
- *
- *
- * ***************************************************************************/
- using System; using Microsoft;
-
-
- #if !SILVERLIGHT
-
- using System.Diagnostics;
- using Microsoft.Linq.Expressions;
-
- namespace Microsoft.Scripting.Com {
-
- internal sealed class ReturnBuilder {
- private readonly Type _returnType;
-
- /// <summary>
- /// Creates a ReturnBuilder
- /// </summary>
- /// <param name="returnType">the type the ReturnBuilder will leave on the stack</param>
- internal ReturnBuilder(Type returnType) {
- Debug.Assert(returnType != null);
-
- _returnType = returnType;
- }
-
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
- internal Expression ToExpression(Expression ret) {
- return ret;
- }
-
- internal Type ReturnType {
- get {
- return _returnType;
- }
- }
- }
- }
-
- #endif