|
lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents global variable assignment (i.e. $foo = 42)
More...
#include <nodes.hpp>
Public Attributes | |
| String | name |
Name of the global variable, String("$foo") for $foo More... | |
| Node * | value |
| Loc | name_l |
| MaybeLoc | operator_l |
| Loc | expression_l |
Represents global variable assignment (i.e. $foo = 42)
| Loc lib_ruby_parser::Gvasgn::expression_l |
Location of the full expression
| Loc lib_ruby_parser::Gvasgn::name_l |
Location of the global variable name
| MaybeLoc lib_ruby_parser::Gvasgn::operator_l |
Location of the = operator
None if global variable assignment is a part of the multi-assignment. In such case = operator belongs to the Masgn node.
| Node* lib_ruby_parser::Gvasgn::value |