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

Represents a key/value pair (e.g. a part of the Hash node) More...

#include <nodes.hpp>

Public Attributes

Nodekey
 Key of the pair. More...
 
Nodevalue
 Value of the pair. More...
 
Loc operator_l
 
Loc expression_l
 

Detailed Description

Represents a key/value pair (e.g. a part of the Hash node)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::Pair::expression_l

Location of the full expression

{ foo: bar }
^^^^^^^^
{ :foo => bar }
^^^^^^^^^^^

◆ key

Node* lib_ruby_parser::Pair::key

Key of the pair.

◆ operator_l

Loc lib_ruby_parser::Pair::operator_l

Location of the : or => operator

{ foo: bar }
^
{ :foo => bar }
^^

◆ value

Node* lib_ruby_parser::Pair::value

Value of the pair.


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