Class: Minjs::ECMA262::Statement

Inherits:
Base
  • Object
show all
Defined in:
lib/minjs/ecma262/statement.rb

Overview

Base class of ECMA262 statement element.

See Also:

Instance Attribute Summary

Attributes inherited from Base

#parent

Instance Method Summary collapse

Methods inherited from Base

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

Instance Method Details

#empty?Boolean

return true if statement can convert to empty statement.

Returns:



23
24
25
# File 'lib/minjs/ecma262/statement.rb', line 23

def empty?
  false
end

#priorityFixnum

Returns expression priority.

Returns:

  • (Fixnum)

    expression priority



18
19
20
# File 'lib/minjs/ecma262/statement.rb', line 18

def priority
  999
end

#to_exp?Boolean

return true if statement can convert to expression.

Returns:



8
9
10
# File 'lib/minjs/ecma262/statement.rb', line 8

def to_exp?
  false
end

#to_return?Boolean

return true if statement can convert to return statement.

Returns:



13
14
15
# File 'lib/minjs/ecma262/statement.rb', line 13

def to_return?
  false
end