Class: JsxRosetta::IR::SpreadAttribute
- Inherits:
-
Data
- Object
- Data
- JsxRosetta::IR::SpreadAttribute
- Includes:
- Node
- Defined in:
- lib/jsx_rosetta/ir/types.rb
Overview
A spread attribute: ‘…rest` in JSX. The expression is preserved verbatim; backends emit it as `**<expression>` or equivalent.
expression : String — verbatim JS source of the spread argument
(typically a single identifier, sometimes a member chain).
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression
91 92 93 |
# File 'lib/jsx_rosetta/ir/types.rb', line 91 def expression @expression end |