private ToCondition ( LexicalScope currentScope ) : IronRuby.Compiler.Ast.Expression | ||
currentScope | LexicalScope | |
Результат | 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;
}
}