class Minjs::ECMA262::StEmpty

Base class of ECMA262 EmptyStatement element.

@see www.ecma-international.org/ecma-262 ECMA262 12.2

Public Class Methods

new() click to toggle source
# File lib/minjs/ecma262/statement.rb, line 252
def initialize()
end

Public Instance Methods

==(obj) click to toggle source

compare object

# File lib/minjs/ecma262/statement.rb, line 267
def ==(obj)
  self.class == obj.class
end
deep_dup() click to toggle source

duplicate object @see Base#deep_dup

# File lib/minjs/ecma262/statement.rb, line 257
def deep_dup
  self.class.new()
end
empty?() click to toggle source

return true if statement can convert to empty statement.

# File lib/minjs/ecma262/statement.rb, line 278
def empty?
  true
end
to_js(options = {}) click to toggle source

Returns a ECMAScript string containg the representation of element. @see Base#to_js

# File lib/minjs/ecma262/statement.rb, line 273
def to_js(options = {})
  ";;"
end
traverse(parent) { |parent, self| ... } click to toggle source

Traverses this children and itself with given block.

# File lib/minjs/ecma262/statement.rb, line 262
def traverse(parent, &block)
  yield parent, self
end