Spicy
break.h
1 // Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2 
3 #pragma once
4 
5 #include <utility>
6 
7 #include <hilti/ast/expression.h>
8 #include <hilti/ast/statement.h>
9 
10 namespace hilti::statement {
11 
13 class Break : public NodeBase, public hilti::trait::isStatement {
14 public:
15  Break(Meta m = Meta()) : NodeBase({}, std::move(m)) {}
16 
17  bool operator==(const Break& /* other */) const { return true; }
18 
20  auto isEqual(const Statement& other) const { return node::isEqual(this, other); }
21 
23  auto properties() const { return node::Properties{}; }
24 };
25 
26 } // namespace hilti::statement
auto isEqual(const Statement &other) const
Definition: break.h:20
Definition: break.h:13
Definition: meta.h:19
Definition: statement.h:14
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:98
auto properties() const
Definition: break.h:23
Definition: node.h:360