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

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

#include <nodes.hpp>

Public Attributes

String name
 Name of the keyword argument. More...
 
Loc name_l
 
Loc expression_l
 

Detailed Description

Represents required keyword argument (i.e. foo in def m(foo:); end)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::Kwarg::expression_l

Location of the full expression

def foo(bar:); end
^^^^

◆ name

String lib_ruby_parser::Kwarg::name

Name of the keyword argument.

◆ name_l

Loc lib_ruby_parser::Kwarg::name_l

Location of the name

def foo(bar:); end
^^^

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