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

Represents positional rest argument (i.e. *foo in def m(*foo); end) More...

#include <nodes.hpp>

Public Attributes

MaybeString name
 
Loc operator_l
 
MaybeLoc name_l
 
Loc expression_l
 

Detailed Description

Represents positional rest argument (i.e. *foo in def m(*foo); end)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::Restarg::expression_l

Location of the full expression

def m(*foo); end
^^^^

◆ name

MaybeString lib_ruby_parser::Restarg::name

Name of the argument.

None if argument has no name (i.e. def m(*); end)

◆ name_l

MaybeLoc lib_ruby_parser::Restarg::name_l

Location of the argument name

def m(*foo); end
^^^

◆ operator_l

Loc lib_ruby_parser::Restarg::operator_l

Location of the * operator

def m(*foo); end
^

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