Class: JsxRosetta::IR::LocalBinding
- Inherits:
-
Data
- Object
- Data
- JsxRosetta::IR::LocalBinding
- Includes:
- Node
- Defined in:
- lib/jsx_rosetta/ir/types.rb
Overview
A non-JSX local binding declared inside the component body (‘const date = parseISO(dateString)`). The verbatim source is preserved so the human reviewer can translate it.
name : String source : String — verbatim JS of the entire VariableDeclaration statement.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
44 45 46 |
# File 'lib/jsx_rosetta/ir/types.rb', line 44 def name @name end |
#source ⇒ Object (readonly)
Returns the value of attribute source
44 45 46 |
# File 'lib/jsx_rosetta/ir/types.rb', line 44 def source @source end |