Class: Fdlint::Parser::JS::WhileStatement

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(condition, body, pos) ⇒ WhileStatement

Returns a new instance of WhileStatement.



160
161
162
# File 'lib/fdlint/parser/js/struct.rb', line 160

def initialize(condition, body, pos)
  super 'while', condition, body, pos
end