Class: Rubex::AST::Statement::BeginBlock::Else
- Inherits:
-
Base
show all
- Defined in:
- lib/rubex/ast/statement/begin_block/else.rb
Instance Attribute Summary
#location
Instance Method Summary
collapse
Methods inherited from Base
#initialize
#==, #initialize, #statement?
Instance Method Details
#analyse_statement(local_scope) ⇒ Object
6
7
8
9
10
|
# File 'lib/rubex/ast/statement/begin_block/else.rb', line 6
def analyse_statement(local_scope)
@statements.each do |stmt|
stmt.analyse_statement local_scope
end
end
|
#generate_code(code, local_scope) ⇒ Object
12
13
14
15
16
|
# File 'lib/rubex/ast/statement/begin_block/else.rb', line 12
def generate_code(code, local_scope)
@statements.each do |stmt|
stmt.generate_code code, local_scope
end
end
|