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

Represents an optional keyword argument (i.e. foo in def m(foo: 42); end) More...

#include <nodes.hpp>

Public Attributes

String name
 Name of the optional keyword argument. More...
 
Nodedefault_
 Default value of the optional keyword argument. More...
 
Loc name_l
 
Loc expression_l
 

Detailed Description

Represents an optional keyword argument (i.e. foo in def m(foo: 42); end)

Member Data Documentation

◆ default_

Node* lib_ruby_parser::Kwoptarg::default_

Default value of the optional keyword argument.

◆ expression_l

Loc lib_ruby_parser::Kwoptarg::expression_l

Location of the argument name

def m(foo: 1); end
^^^^^^

◆ name

String lib_ruby_parser::Kwoptarg::name

Name of the optional keyword argument.

◆ name_l

Loc lib_ruby_parser::Kwoptarg::name_l

Location of the argument name

def m(foo: 1); end
^^^

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