8 #include <hilti/ast/declarations/local-variable.h> 9 #include <hilti/ast/expression.h> 10 #include <hilti/ast/statement.h> 19 :
NodeBase(nodes(std::move(
id), std::move(seq), std::move(body)), std::move(m)) {}
21 const auto& id()
const {
return child<ID>(0); }
22 const auto& sequence()
const {
return child<hilti::Expression>(1); }
23 const auto& body()
const {
return child<hilti::Statement>(2); }
31 bool operator==(
const For& other)
const {
32 return id() == other.id() && sequence() == other.sequence() && body() == other.body();
42 auto isEqual(
const Statement& other)
const {
return node::isEqual(
this, other); }
auto & childs() const
Definition: node.h:445
auto & _bodyNode()
Definition: for.h:39
IntrusivePtr< Scope > scope() const
Definition: for.h:29
auto properties() const
Definition: for.h:45
Definition: statement.h:14
Definition: intrusive-ptr.h:69
auto isEqual(const Statement &other) const
Definition: for.h:42
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:83
auto & _sequenceNode()
Definition: for.h:36