Class: Fdlint::Parser::JS::SwitchStatement

Inherits:
Statement show all
Defined in:
lib/fdlint/parser/js/struct.rb

Instance Attribute Summary

Attributes inherited from Element

#left, #right, #type

Instance Method Summary collapse

Methods inherited from Statement

#end_with_semicolon=, #end_with_semicolon?

Methods inherited from Element

#contains?, #position, #text

Constructor Details

#initialize(expression, case_block, position) ⇒ SwitchStatement

Returns a new instance of SwitchStatement.



131
132
133
# File 'lib/fdlint/parser/js/struct.rb', line 131

def initialize(expression, case_block, position)
  super 'switch', expression, case_block, position
end