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

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

#include <nodes.hpp>

Public Attributes

Nodevalue
 
Loc operator_l
 
Loc expression_l
 

Detailed Description

Represents a &blk argument of the method call (but not of the method definition, see BlockArg)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::BlockPass::expression_l

Location of the full expression

foo(&bar)
^^^^

◆ operator_l

Loc lib_ruby_parser::BlockPass::operator_l

Location of the & operator

foo(&blk)
^

◆ value

Node* lib_ruby_parser::BlockPass::value

Value that is converted to a block

Int("1") in foo(&1) (yes, it's possible)


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