lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents an if
/unless
modifier (i.e. stmt if cond
)
More...
#include <nodes.hpp>
Public Attributes | |
Node * | cond |
Condition of the modifier. More... | |
Node * | if_true |
Node * | if_false |
Loc | keyword_l |
Loc | expression_l |
Represents an if
/unless
modifier (i.e. stmt if cond
)
Node* lib_ruby_parser::IfMod::cond |
Condition of the modifier.
Loc lib_ruby_parser::IfMod::expression_l |
Location of the full expression
Node* lib_ruby_parser::IfMod::if_false |
False-branch of the modifier.
Always set for unless
modifier. Always None
for if
modifier.
Node* lib_ruby_parser::IfMod::if_true |
True-branch of the modifier.
Always set for if
modifier. Always None
for unless
modifier.
Loc lib_ruby_parser::IfMod::keyword_l |
Location of the if
/unless
keyword