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

Represents a block that takes numbered parameters (i.e. proc { _1 }) More...

#include <nodes.hpp>

Public Attributes

Nodecall
 Method call that takes a block. More...
 
uint8_t numargs
 Number of parameters that block takes. More...
 
Nodebody
 Block body. More...
 
Loc begin_l
 
Loc end_l
 
Loc expression_l
 

Detailed Description

Represents a block that takes numbered parameters (i.e. proc { _1 })

Member Data Documentation

◆ begin_l

Loc lib_ruby_parser::Numblock::begin_l

Location of the open brace

proc { _1 }
^

◆ body

Node* lib_ruby_parser::Numblock::body

Block body.

◆ call

Node* lib_ruby_parser::Numblock::call

Method call that takes a block.

◆ end_l

Loc lib_ruby_parser::Numblock::end_l

Location of the closing brace

proc { _1 }
^

◆ expression_l

Loc lib_ruby_parser::Numblock::expression_l

Location of the open brace

proc { _1 }
^^^^^^^^^^^

◆ numargs

uint8_t lib_ruby_parser::Numblock::numargs

Number of parameters that block takes.


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