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

Represents class variable assignment (i.e. @@var = 42) More...

#include <nodes.hpp>

Public Attributes

String name
 Name of the class variable, String("@@foo") for @@foo = 1 More...
 
Nodevalue
 Value that is assigned to class variable, Int("1") for @@foo = 1 More...
 
Loc name_l
 
MaybeLoc operator_l
 
Loc expression_l
 

Detailed Description

Represents class variable assignment (i.e. @@var = 42)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::Cvasgn::expression_l

Location of the full expression

@@foo = 1
^^^^^^^^^

◆ name

String lib_ruby_parser::Cvasgn::name

Name of the class variable, String("@@foo") for @@foo = 1

◆ name_l

Loc lib_ruby_parser::Cvasgn::name_l

Location of the class variable name

@@foo = 1
^^^^^

◆ operator_l

MaybeLoc lib_ruby_parser::Cvasgn::operator_l

Location of the = operator

@@foo = 1
^

◆ value

Node* lib_ruby_parser::Cvasgn::value

Value that is assigned to class variable, Int("1") for @@foo = 1


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