Class: Rubex::AST::Statement::Break
- Inherits:
-
Base
- Object
- Base
- Rubex::AST::Statement::Break
show all
- Defined in:
- lib/rubex/ast/statement/break.rb
Instance Attribute Summary
Attributes inherited from Base
#location
Instance Method Summary
collapse
Methods inherited from Base
#==, #initialize, #statement?
Instance Method Details
#analyse_statement(local_scope) ⇒ Object
5
6
7
8
|
# File 'lib/rubex/ast/statement/break.rb', line 5
def analyse_statement(local_scope)
end
|
#generate_code(code, _local_scope) ⇒ Object
10
11
12
13
14
|
# File 'lib/rubex/ast/statement/break.rb', line 10
def generate_code(code, _local_scope)
code.write_location @location
code << 'break;'
code.nl
end
|