7 #include <hilti/ast/ctor.h> 8 #include <hilti/ast/ctors/null.h> 9 #include <hilti/ast/expressions/ctor.h> 10 #include <hilti/ast/types/any.h> 11 #include <hilti/ast/types/error.h> 12 #include <hilti/ast/types/result.h> 22 std::optional<Expression> value()
const {
23 auto e = child<Expression>(0);
31 std::optional<Expression> error()
const {
32 auto e = child<Expression>(0);
40 std::optional<Type> dereferencedType()
const {
41 if (
auto x = value() )
47 bool operator==(
const Result& other)
const {
return value() == other.value() && error() == other.error(); }
51 if (
auto v = value() )
59 if (
auto v = value() )
60 return v->isConstant();
66 auto isLhs()
const {
return false; }
71 auto isEqual(
const Ctor& other)
const {
return node::isEqual(
this, other); }
auto properties() const
Definition: result.h:74
bool isConstant() const
Definition: result.h:58
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:83
auto isTemporary() const
Definition: result.h:68
auto isLhs() const
Definition: result.h:66
Type type() const
Definition: result.h:50
auto isEqual(const Ctor &other) const
Definition: result.h:71
auto & meta() const
Definition: node.h:449