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

Represents an array literal. More...

#include <nodes.hpp>

Public Attributes

NodeList elements
 A list of elements. More...
 
MaybeLoc begin_l
 
MaybeLoc end_l
 
Loc expression_l
 

Detailed Description

Represents an array literal.

Member Data Documentation

◆ begin_l

MaybeLoc lib_ruby_parser::Array::begin_l

Location of the open bracket

[1, 2, 3]
^

◆ elements

NodeList lib_ruby_parser::Array::elements

A list of elements.

◆ end_l

MaybeLoc lib_ruby_parser::Array::end_l

Location of the closing bracket

[1, 2, 3]
^

◆ expression_l

Loc lib_ruby_parser::Array::expression_l

Location of the full expression

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

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