Class: Fdlint::Parser::JS::CaseBlockStatement

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

Instance Attribute Summary collapse

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(case_clauses, default_clause, bottom_case_clauses, position) ⇒ CaseBlockStatement

Returns a new instance of CaseBlockStatement.



141
142
143
144
# File 'lib/fdlint/parser/js/struct.rb', line 141

def initialize(case_clauses, default_clause, bottom_case_clauses, position)
  super 'caseblock', case_clauses, default_clause, position
  @bottom_case_clauses = bottom_case_clauses
end

Instance Attribute Details

#bottom_case_clausesObject (readonly)

Returns the value of attribute bottom_case_clauses.



137
138
139
# File 'lib/fdlint/parser/js/struct.rb', line 137

def bottom_case_clauses
  @bottom_case_clauses
end