lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents constant access (i.e. Foo::Bar
)
More...
#include <nodes.hpp>
Public Attributes | |
Node * | scope |
String | name |
Name of the constant, String("Foo") for Foo More... | |
MaybeLoc | double_colon_l |
Loc | name_l |
Loc | expression_l |
Represents constant access (i.e. Foo::Bar
)
MaybeLoc lib_ruby_parser::Const::double_colon_l |
Location of the ::
operator. None
if constant is taken from the current scope.
Loc lib_ruby_parser::Const::expression_l |
Location of the full expression
Loc lib_ruby_parser::Const::name_l |
Location of the constant name
Node* lib_ruby_parser::Const::scope |
Scope where the constant is taken from:
Some(Const("A"))
for A::B
None
if it's taken from the current scope (i.e. A
)Some(Cbase)
if it's taken from the global scope (i.e. ::A
)