Class: Fdlint::Parser::JS::VarStatement

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(declarations, position) ⇒ VarStatement

Returns a new instance of VarStatement.



103
104
105
# File 'lib/fdlint/parser/js/struct.rb', line 103

def initialize(declarations, position)
  super 'var', declarations, nil, position
end