7 #include <hilti/ast/expression.h> 8 #include <hilti/ast/types/bool.h> 11 namespace expression {
17 :
NodeBase({std::move(op0), std::move(op1)}, std::move(m)) {}
19 const auto& op0()
const {
return child<Expression>(0); }
20 const auto& op1()
const {
return child<Expression>(1); }
22 bool operator==(
const LogicalOr& other)
const {
return op0() == other.op0() && op1() == other.op1(); }
25 bool isLhs()
const {
return false; }
31 auto isConstant()
const {
return op0().isConstant() && op1().isConstant(); }
33 auto isEqual(
const Expression& other)
const {
return node::isEqual(
this, other); }
46 auto x = Expression(e)._clone().as<
LogicalOr>();
59 auto x = Expression(e)._clone().as<
LogicalOr>();
auto type() const
Definition: logical-or.h:29
std::vector< T > childs(int begin, int end) const
Definition: node.h:373
bool isTemporary() const
Definition: logical-or.h:27
bool isLhs() const
Definition: logical-or.h:25
Definition: expression.h:16
auto isConstant() const
Definition: logical-or.h:31
Definition: logical-or.h:14
auto properties() const
Definition: logical-or.h:36
auto isEqual(const Expression &other) const
Definition: logical-or.h:33
static Expression setOp0(const LogicalOr &e, const Expression &op)
Definition: logical-or.h:45
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:83
static Expression setOp1(const LogicalOr &e, const Expression &op)
Definition: logical-or.h:58