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

Represents BEGIN { ... } statement. More...

#include <nodes.hpp>

Public Attributes

Nodebody
 Body of the block. More...
 
Loc keyword_l
 
Loc begin_l
 
Loc end_l
 
Loc expression_l
 

Detailed Description

Represents BEGIN { ... } statement.

Member Data Documentation

◆ begin_l

Loc lib_ruby_parser::Preexe::begin_l

Location of the open parenthesis

BEGIN { 42 }
^

◆ body

Node* lib_ruby_parser::Preexe::body

Body of the block.

◆ end_l

Loc lib_ruby_parser::Preexe::end_l

Location of the closing parenthesis

BEGIN { 42 }
^

◆ expression_l

Loc lib_ruby_parser::Preexe::expression_l

Location of the full expression

BEGIN { 42 }
^^^^^^^^^^^^

◆ keyword_l

Loc lib_ruby_parser::Preexe::keyword_l

Location of the BEGIN keyword

BEGIN { 42 }
^^^^^

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