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

Represents a keyword 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 a keyword rest argument (i.e. foo in def m(**foo); end)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::Kwrestarg::expression_l

Location of the full expression

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

◆ name

MaybeString lib_ruby_parser::Kwrestarg::name

Name of the keyword rest argument, String("foo") in def m(**foo); end.

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

◆ name_l

MaybeLoc lib_ruby_parser::Kwrestarg::name_l

Location of the argument name

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

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

◆ operator_l

Loc lib_ruby_parser::Kwrestarg::operator_l

Location of the ** operator

def m(**foo); end
^^

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