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

Represents alias to from statement. More...

#include <nodes.hpp>

Public Attributes

Nodeto
 
Nodefrom
 
Loc keyword_l
 
Loc expression_l
 

Detailed Description

Represents alias to from statement.

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::Alias::expression_l

Location of the full expression

alias foo bar
^^^^^^^^^^^^^

◆ from

Node* lib_ruby_parser::Alias::from

Source of the alias.

Sym("bar") node for alias :foo :bar

◆ keyword_l

Loc lib_ruby_parser::Alias::keyword_l

Location of the alias keyword

alias foo bar
^^^^^

◆ to

Node* lib_ruby_parser::Alias::to

Target of the alias.

Sym("foo") node for alias :foo :bar


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