IronRuby.Compiler.Ast.Body.ToCondition C# (CSharp) Method

ToCondition() private method

private ToCondition ( LexicalScope currentScope ) : IronRuby.Compiler.Ast.Expression
currentScope LexicalScope
return IronRuby.Compiler.Ast.Expression
        internal override Expression/*!*/ ToCondition(LexicalScope/*!*/ currentScope) {
            // propagates 'in condition' property if we have a single element:
            if (_statements != null && _statements.Count == 1 && !HasExceptionHandling) {
                return _statements.First.ToCondition(currentScope);
            }

            return this;
        }
    }