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

Represents a &blk argument in the method definition (but not in the method call, see BlockPass) More...

#include <nodes.hpp>

Public Attributes

MaybeString name
 Name of the argument, String("foo") for def m(&foo) More...
 
Loc operator_l
 
MaybeLoc name_l
 
Loc expression_l
 

Detailed Description

Represents a &blk argument in the method definition (but not in the method call, see BlockPass)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::Blockarg::expression_l

Location of the full expression

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

◆ name

MaybeString lib_ruby_parser::Blockarg::name

Name of the argument, String("foo") for def m(&foo)

◆ name_l

MaybeLoc lib_ruby_parser::Blockarg::name_l

Location of the name

def m(&foo); end
^^^

◆ operator_l

Loc lib_ruby_parser::Blockarg::operator_l

Location of the & operator

def m(&foo); end
^

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