Class: JsxRosetta::IR::ObjectLiteral

Inherits:
Data
  • Object
show all
Includes:
Node
Defined in:
lib/jsx_rosetta/ir/types.rb

Overview

An object-literal value (‘{ key: value, … }`) inside JSX. Lowered from a JSX attribute or expression value whose root is an ObjectExpression. Each property’s key is a String; the value can be any IR node (recursive). Backends render as a Ruby Hash literal, snake_casing identifier keys to match Ruby kwarg conventions.

properties : [[String key, Node value]] — preserved in source order.

Instance Attribute Summary collapse

Instance Attribute Details

#propertiesObject (readonly)

Returns the value of attribute properties

Returns:

  • (Object)

    the current value of properties



308
309
310
# File 'lib/jsx_rosetta/ir/types.rb', line 308

def properties
  @properties
end