78 lines
1.8 KiB
Plaintext
78 lines
1.8 KiB
Plaintext
================================================================================
|
|
get attr
|
|
================================================================================
|
|
|
|
foo = bar.baz
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(config_file
|
|
(body
|
|
(attribute
|
|
(identifier)
|
|
(expression
|
|
(variable_expr
|
|
(identifier))
|
|
(get_attr
|
|
(identifier))))))
|
|
|
|
================================================================================
|
|
get index
|
|
================================================================================
|
|
|
|
foo = bar[1]
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(config_file
|
|
(body
|
|
(attribute
|
|
(identifier)
|
|
(expression
|
|
(variable_expr
|
|
(identifier))
|
|
(index
|
|
(expression
|
|
(literal_value
|
|
(numeric_lit))))))))
|
|
|
|
================================================================================
|
|
attr splat
|
|
================================================================================
|
|
|
|
foo = bar.*.foo
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(config_file
|
|
(body
|
|
(attribute
|
|
(identifier)
|
|
(expression
|
|
(variable_expr
|
|
(identifier))
|
|
(splat
|
|
(attr_splat))
|
|
(get_attr
|
|
(identifier))))))
|
|
|
|
================================================================================
|
|
full splat
|
|
================================================================================
|
|
|
|
foo = bar[*].foo
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(config_file
|
|
(body
|
|
(attribute
|
|
(identifier)
|
|
(expression
|
|
(variable_expr
|
|
(identifier))
|
|
(splat
|
|
(full_splat))
|
|
(get_attr
|
|
(identifier))))))
|