Class: Minjs::ECMA262::ExpMod

Inherits:
ExpArg2 show all
Includes:
BinaryOperation
Defined in:
lib/minjs/ecma262/exp.rb

Overview

11.5.3 Applying the % Operator

Instance Attribute Summary

Attributes inherited from ExpArg2

#val, #val2

Instance Method Summary collapse

Methods included from BinaryOperation

#==, #add_paren, #remove_paren

Methods inherited from ExpArg2

#deep_dup, #initialize, #replace, #to_js, #traverse

Methods inherited from Exp

#left_hand_side_exp?, #reduce, #to_js, #traverse

Methods inherited from Base

#==, #add_remove_paren, #concat, #deep_dup, #replace, #to_js, #to_s

Constructor Details

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

Instance Method Details

#ecma262_typeofObject



828
829
830
# File 'lib/minjs/ecma262/exp.rb', line 828

def ecma262_typeof
  :number
end

#priorityObject



824
825
826
# File 'lib/minjs/ecma262/exp.rb', line 824

def priority
  PRIORITY_MULTIPLICATIVE
end

#symObject



820
821
822
# File 'lib/minjs/ecma262/exp.rb', line 820

def sym
  "%"
end