Class: Minjs::ECMA262::ExpPostDec

Inherits:
ExpArg1 show all
Includes:
UnaryOperation
Defined in:
lib/minjs/ecma262/exp.rb

Instance Attribute Summary

Attributes inherited from ExpArg1

#val

Instance Method Summary collapse

Methods included from UnaryOperation

#==, #add_paren, #remove_paren

Methods inherited from ExpArg1

#deep_dup, #initialize, #replace, #traverse

Methods inherited from Exp

#reduce, #traverse

Methods inherited from Base

#==, #concat, #deep_dup, #replace, #to_s

Constructor Details

This class inherits a constructor from Minjs::ECMA262::ExpArg1

Instance Method Details

#priorityObject



528
529
530
# File 'lib/minjs/ecma262/exp.rb', line 528

def priority
  PRIORITY_POSTFIX
end

#symObject



524
525
526
# File 'lib/minjs/ecma262/exp.rb', line 524

def sym
  "--"
end

#to_js(options = {}) ⇒ Object



532
533
534
# File 'lib/minjs/ecma262/exp.rb', line 532

def to_js(options = {})
  concat options, @val, sym
end