lib-ruby-parser (C++ bindings)  4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
lib_ruby_parser::IndexAsgn Class Reference

Represents assignment using indexing operation (i.e. foo[1, 2, 3] = bar) More...

#include <nodes.hpp>

Public Attributes

Noderecv
 Receiver of the indexing. More...
 
NodeList indexes
 A list of indexes. More...
 
Nodevalue
 
Loc begin_l
 
Loc end_l
 
MaybeLoc operator_l
 
Loc expression_l
 

Detailed Description

Represents assignment using indexing operation (i.e. foo[1, 2, 3] = bar)

Member Data Documentation

◆ begin_l

Loc lib_ruby_parser::IndexAsgn::begin_l

Location of open bracket

foo[1, 2, 3] = bar
^

◆ end_l

Loc lib_ruby_parser::IndexAsgn::end_l

Location of closing bracket

foo[1, 2, 3] = bar
^

◆ expression_l

Loc lib_ruby_parser::IndexAsgn::expression_l

Location of the full expression

foo[1, 2, 3] = bar
^^^^^^^^^^^^^^^^^^

◆ indexes

NodeList lib_ruby_parser::IndexAsgn::indexes

A list of indexes.

◆ operator_l

MaybeLoc lib_ruby_parser::IndexAsgn::operator_l

Location of the = operator

foo[1, 2, 3] = bar
^

None if assignment is a part of the multi-assignment. In such case operator = belongs to Masgn node.

◆ recv

Node* lib_ruby_parser::IndexAsgn::recv

Receiver of the indexing.

◆ value

Node* lib_ruby_parser::IndexAsgn::value

Value that is assigned

None if assignment is a part of the multi-assignment. In such case value belongs to Masgn node.


The documentation for this class was generated from the following file: