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

Represents ternary if statement (i.e. cond ? if_true : if_false) More...

#include <nodes.hpp>

Public Attributes

Nodecond
 Condition of the if statement. More...
 
Nodeif_true
 True-branch. More...
 
Nodeif_false
 True-branch. More...
 
Loc question_l
 
Loc colon_l
 
Loc expression_l
 

Detailed Description

Represents ternary if statement (i.e. cond ? if_true : if_false)

Member Data Documentation

◆ colon_l

Loc lib_ruby_parser::IfTernary::colon_l

Location of the : operator

cond ? if_true : if_false
^

◆ cond

Node* lib_ruby_parser::IfTernary::cond

Condition of the if statement.

◆ expression_l

Loc lib_ruby_parser::IfTernary::expression_l

Location of the full expression

cond ? if_true : if_false
^^^^^^^^^^^^^^^^^^^^^^^^^

◆ if_false

Node* lib_ruby_parser::IfTernary::if_false

True-branch.

◆ if_true

Node* lib_ruby_parser::IfTernary::if_true

True-branch.

◆ question_l

Loc lib_ruby_parser::IfTernary::question_l

Location of the ? operator

cond ? if_true : if_false
^

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