Class: Y2R::AST::YCP::Repeat
- Inherits:
-
Node
- Object
- OpenStruct
- Node
- Y2R::AST::YCP::Repeat
show all
- Defined in:
- lib/y2r/ast/ycp.rb
Instance Method Summary
collapse
Methods inherited from Node
#always_returns?, #compile_as_copy_if_needed, #compile_statements, #compile_statements_inside_block, #compile_statements_with_whitespace, #creates_local_scope?, #needs_copy?, #never_nil?, #optimize_last_statement, #optimize_next, #optimize_return, #remove_duplicate_imports, transfers_comments
Instance Method Details
#compile(context) ⇒ Object
1765
1766
1767
1768
1769
1770
1771
1772
|
# File 'lib/y2r/ast/ycp.rb', line 1765
def compile(context)
Ruby::Until.new(
:condition => self.until.compile(context),
:body => Ruby::Begin.new(
:statements => compile_statements_inside_block(self.do, context)
)
)
end
|
#symbols ⇒ Object
1761
1762
1763
|
# File 'lib/y2r/ast/ycp.rb', line 1761
def symbols
[]
end
|