Spicy
reject.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/meta.h>
8 #include <hilti/ast/node.h>
9 #include <hilti/ast/statement.h>
10 
11 namespace spicy::statement {
13 public:
14  Reject(hilti::Meta m = hilti::Meta()) : hilti::NodeBase(std::move(m)) {}
15 
16  friend bool operator==(const Reject&, const Reject&) { return false; }
17 
18  // Statement interface.
19  auto isEqual(const hilti::Statement& other) const { return hilti::node::isEqual(this, other); }
20 
21  // Node interface.
22  auto properties() const { return hilti::node::Properties{}; }
23 };
24 } // namespace spicy::statement
Definition: confirm.h:11
Definition: reject.h:12
Definition: meta.h:18
Definition: statement.h:14
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:99
Definition: node.h:358