lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Represents an if
statement (i.e. if foo; bar; else; baz; end
)
More...
#include <nodes.hpp>
Public Attributes | |
Node * | cond |
Condition given to the if statement, Lvar("a") for if a; b; else; c; end More... | |
Node * | if_true |
True-branch of the if statement, Lvar("b") for if a; b; else; c; end More... | |
Node * | if_false |
False-branch of the if statement, Lvar("c") for if a; b; else; c; end More... | |
Loc | keyword_l |
Loc | begin_l |
MaybeLoc | else_l |
MaybeLoc | end_l |
Loc | expression_l |
Represents an if
statement (i.e. if foo; bar; else; baz; end
)
Loc lib_ruby_parser::If::begin_l |
Location of the then
keyword
None
if then
keyword is omitted
Node* lib_ruby_parser::If::cond |
Condition given to the if
statement, Lvar("a")
for if a; b; else; c; end
MaybeLoc lib_ruby_parser::If::else_l |
Location of the else
keyword
None
if there's no else
branch
MaybeLoc lib_ruby_parser::If::end_l |
Location of the end
keyword
Loc lib_ruby_parser::If::expression_l |
Location of the full expression
Node* lib_ruby_parser::If::if_false |
False-branch of the if
statement, Lvar("c")
for if a; b; else; c; end
Node* lib_ruby_parser::If::if_true |
True-branch of the if
statement, Lvar("b")
for if a; b; else; c; end
Loc lib_ruby_parser::If::keyword_l |
Location of the if
keyword