IronPython.Compiler.Ast.FunctionDefinition.AddDefaultReturn C# (CSharp) Метод

AddDefaultReturn() приватный статический Метод

private static AddDefaultReturn ( System.Linq.Expressions body, Type returnType ) : Expression
body System.Linq.Expressions
returnType System.Type
Результат System.Linq.Expressions.Expression
        private static MSAst.Expression/*!*/ AddDefaultReturn(MSAst.Expression/*!*/ body, Type returnType) {
            if (body.Type == typeof(void) && returnType != typeof(void)) {
                body = Ast.Block(body, Ast.Default(returnType));
            }
            return body;
        }