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

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

#include <nodes.hpp>

Public Attributes

Noderecv
 Receiver of indexing. More...
 
NodeList indexes
 A list of indexes. More...
 
Loc begin_l
 
Loc end_l
 
Loc expression_l
 

Detailed Description

Represents indexing operation (i.e. foo[1,2,3])

Member Data Documentation

◆ begin_l

Loc lib_ruby_parser::Index::begin_l

Location of open bracket

foo[1, 2, 3]
^

◆ end_l

Loc lib_ruby_parser::Index::end_l

Location of closing bracket

foo[1, 2, 3]
^

◆ expression_l

Loc lib_ruby_parser::Index::expression_l

Location of the full expression

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

◆ indexes

NodeList lib_ruby_parser::Index::indexes

A list of indexes.

◆ recv

Node* lib_ruby_parser::Index::recv

Receiver of indexing.


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