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

#include <nodes.hpp>

Public Attributes

NodeList args
 List of arguments. More...
 
Loc expression_l
 
MaybeLoc begin_l
 
MaybeLoc end_l
 

Detailed Description

Represents an arguments list

Args(vec![Arg("a"), Optarg("b", Int("1"))]) in def m(a, b = 1); end

Member Data Documentation

◆ args

NodeList lib_ruby_parser::Args::args

List of arguments.

◆ begin_l

MaybeLoc lib_ruby_parser::Args::begin_l

Location of the open parenthesis

def m(a, b = 1, c:, &blk); end
^

None for code like def m; end or def m arg; end

◆ end_l

MaybeLoc lib_ruby_parser::Args::end_l

Location of the closing parenthesis

def m(a, b = 1, c:, &blk); end
^

None for code like def m; end or def m arg; end

◆ expression_l

Loc lib_ruby_parser::Args::expression_l

Location of the full expression

def m(a, b = 1, c:, &blk); end
^^^^^^^^^^^^^^^^^^^^

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