|
lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents ternary if statement (i.e. cond ? if_true : if_false)
More...
#include <nodes.hpp>
Public Attributes | |
| Node * | cond |
Condition of the if statement. More... | |
| Node * | if_true |
| True-branch. More... | |
| Node * | if_false |
| True-branch. More... | |
| Loc | question_l |
| Loc | colon_l |
| Loc | expression_l |
Represents ternary if statement (i.e. cond ? if_true : if_false)
| Loc lib_ruby_parser::IfTernary::colon_l |
Location of the : operator
| Node* lib_ruby_parser::IfTernary::cond |
Condition of the if statement.
| Loc lib_ruby_parser::IfTernary::expression_l |
Location of the full expression
| Node* lib_ruby_parser::IfTernary::if_false |
True-branch.
| Node* lib_ruby_parser::IfTernary::if_true |
True-branch.
| Loc lib_ruby_parser::IfTernary::question_l |
Location of the ? operator