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

Represents an yield keyword. More...

#include <nodes.hpp>

Public Attributes

NodeList args
 A list of arguments given to yield More...
 
Loc keyword_l
 
MaybeLoc begin_l
 
MaybeLoc end_l
 
Loc expression_l
 

Detailed Description

Represents an yield keyword.

Member Data Documentation

◆ args

NodeList lib_ruby_parser::Yield::args

A list of arguments given to yield

◆ begin_l

MaybeLoc lib_ruby_parser::Yield::begin_l

Location of the open parenthesis

yield(1, 2)
^

None if there are no parentheses

◆ end_l

MaybeLoc lib_ruby_parser::Yield::end_l

Location of the closing parenthesis

yield(1, 2)
^

None if there are no parentheses

◆ expression_l

Loc lib_ruby_parser::Yield::expression_l

Location of the full expression

yield(1, 2)
^^^^^^^^^^^

◆ keyword_l

Loc lib_ruby_parser::Yield::keyword_l

Location of the yield keyword

yield 1, 2
^^^^^

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