7 #include <hilti/ast/expression.h> 8 #include <hilti/ast/types/bool.h> 18 const auto& op0()
const {
return child<Expression>(0); }
19 const auto& op1()
const {
return child<Expression>(1); }
21 void setOp0(
const Expression& op) {
children()[0] = op; }
22 void setOp1(
const Expression& op) {
children()[1] = op; }
24 bool operator==(
const LogicalOr& other)
const {
return op0() == other.op0() && op1() == other.op1(); }
27 bool isLhs()
const {
return false; }
31 const auto&
type()
const {
return child<Type>(2); }
33 auto isConstant()
const {
return op0().isConstant() && op1().isConstant(); }
35 auto isEqual(
const Expression& other)
const {
return node::isEqual(
this, other); }
bool isTemporary() const
Definition: logical-or.h:29
const auto & children() const
Definition: node.h:472
bool isLhs() const
Definition: logical-or.h:27
Definition: expression.h:18
const auto & type() const
Definition: logical-or.h:31
auto isConstant() const
Definition: logical-or.h:33
Definition: logical-or.h:13
auto properties() const
Definition: logical-or.h:38
auto isEqual(const Expression &other) const
Definition: logical-or.h:35
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:98
Definition: expression.h:21