Class: Rubex::AST::Statement::BeginBlock::Else

Inherits:
Base show all
Defined in:
lib/rubex/ast/statement/begin_block/else.rb

Instance Attribute Summary

Attributes inherited from Rubex::AST::Statement::Base

#location

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods inherited from Rubex::AST::Statement::Base

#==, #initialize, #statement?

Constructor Details

This class inherits a constructor from Rubex::AST::Statement::BeginBlock::Base

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