Class: Minjs::ECMA262::ExpGtEq

Inherits:
Expression show all
Includes:
BinaryOperation
Defined in:
lib/minjs/ecma262/expression.rb

Overview

Class of the Greater-than-or-equal operator expression element.

See Also:

Instance Attribute Summary

Attributes included from BinaryOperation

#val, #val2

Attributes inherited from Base

#parent

Instance Method Summary collapse

Methods included from BinaryOperation

#==, #add_paren, #deep_dup, #remove_paren, #replace, #to_js, #traverse

Methods inherited from Expression

#left_hand_side_exp?, #reduce, #side_effect?

Methods inherited from Base

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

Constructor Details

#initialize(val, val2) ⇒ ExpGtEq

Returns a new instance of ExpGtEq.



1499
1500
1501
1502
# File 'lib/minjs/ecma262/expression.rb', line 1499

def initialize(val, val2)
  @val = val
  @val2 = val2
end

Instance Method Details

#ecma262_typeofSymbol

return results of ‘typeof’ operator.

Returns:

  • (Symbol)

    :boolean



1517
1518
1519
# File 'lib/minjs/ecma262/expression.rb', line 1517

def ecma262_typeof
  :boolean
end

#priorityFixnum

Returns expression priority.

Returns:

  • (Fixnum)

    expression priority



1510
1511
1512
# File 'lib/minjs/ecma262/expression.rb', line 1510

def priority
  PRIORITY_RELATIONAL
end

#symObject

symbol of expression



1505
1506
1507
# File 'lib/minjs/ecma262/expression.rb', line 1505

def sym
  ">="
end