Class: Fdlint::Parser::JS::TryStatement

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(try_part, catch_part, finally_part, pos) ⇒ TryStatement

Returns a new instance of TryStatement.



191
192
193
194
# File 'lib/fdlint/parser/js/struct.rb', line 191

def initialize(try_part, catch_part, finally_part, pos)
  super 'try', try_part, catch_part, pos
  @finally_part = finally_part
end

Instance Attribute Details

#finally_partObject (readonly)

Returns the value of attribute finally_part.



187
188
189
# File 'lib/fdlint/parser/js/struct.rb', line 187

def finally_part
  @finally_part
end