Class: JsxRosetta::IR::SpreadAttribute

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



91
92
93
# File 'lib/jsx_rosetta/ir/types.rb', line 91

def expression
  @expression
end