Class: Minjs::ECMA262::StDebugger
- Defined in:
- lib/minjs/ecma262/statement.rb
Overview
Base class of ECMA262 DebuggerStatement element.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#==(obj) ⇒ Object
compare object.
-
#deep_dup ⇒ Object
duplicate object.
-
#to_js(options = {}) ⇒ Object
Returns a ECMAScript string containg the representation of element.
-
#traverse(parent) {|parent, _self| ... } ⇒ Object
Traverses this children and itself with given block.
Methods inherited from Statement
#empty?, #priority, #to_exp?, #to_return?
Methods inherited from Base
#add_remove_paren, #concat, #replace
Instance Method Details
#==(obj) ⇒ Object
compare object
1517 1518 1519 |
# File 'lib/minjs/ecma262/statement.rb', line 1517 def ==(obj) self.class == obj.class end |
#deep_dup ⇒ Object
duplicate object
1507 1508 1509 |
# File 'lib/minjs/ecma262/statement.rb', line 1507 def deep_dup self.class.new end |
#to_js(options = {}) ⇒ Object
Returns a ECMAScript string containg the representation of element.
1523 1524 1525 |
# File 'lib/minjs/ecma262/statement.rb', line 1523 def to_js( = {}) concat , :debugger, ";" end |
#traverse(parent) {|parent, _self| ... } ⇒ Object
Traverses this children and itself with given block.
1512 1513 1514 |
# File 'lib/minjs/ecma262/statement.rb', line 1512 def traverse(parent, &block) yield parent, self end |