Class: JsxRosetta::AST::Program
- Defined in:
- lib/jsx_rosetta/ast/types.rb
Constant Summary
Constants inherited from Node
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Node
#==, #[], #children, #deconstruct_keys, #dig, #each_child, #end_pos, #hash, #initialize, #inspect, #loc, #range, register, #start_pos, #type, #walk, wrap
Constructor Details
This class inherits a constructor from JsxRosetta::AST::Node
Instance Method Details
#body ⇒ Object
26 27 28 |
# File 'lib/jsx_rosetta/ast/types.rb', line 26 def body self[:body] end |
#source_type ⇒ Object
30 31 32 |
# File 'lib/jsx_rosetta/ast/types.rb', line 30 def source_type @raw["sourceType"] end |