Class: Minjs::ECMA262::StDebugger

Inherits:
Statement show all
Defined in:
lib/minjs/ecma262/statement.rb

Overview

Base class of ECMA262 DebuggerStatement element.

See Also:

Instance Attribute Summary

Attributes inherited from Base

#parent

Instance Method Summary collapse

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_dupObject

duplicate object

See Also:



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.

See Also:



1523
1524
1525
# File 'lib/minjs/ecma262/statement.rb', line 1523

def to_js(options = {})
  concat options, :debugger, ";"
end

#traverse(parent) {|parent, _self| ... } ⇒ Object

Traverses this children and itself with given block.

Yields:

Yield Parameters:



1512
1513
1514
# File 'lib/minjs/ecma262/statement.rb', line 1512

def traverse(parent, &block)
  yield parent, self
end