Spicy
print.h
1 // Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2 
3 #pragma once
4 
5 #include <utility>
6 #include <vector>
7 
8 #include <hilti/ast/expression.h>
9 #include <hilti/ast/statement.h>
10 
11 #include <spicy/ast/aliases.h>
12 
13 namespace spicy {
14 namespace statement {
15 
17 public:
18  Print(std::vector<hilti::Expression> e, Meta m = Meta())
19  : hilti::NodeBase(hilti::nodes(std::move(e)), std::move(m)) {}
20 
21  auto expressions() const { return childs<hilti::Expression>(0, -1); }
22 
23  bool operator==(const Print& /* other */) const {
24  // return expressions() == other.expressions(); FIXME
25  return false;
26  }
27 
28  // Statement interface.
29  auto isEqual(const hilti::Statement& other) const { return hilti::node::isEqual(this, other); }
30 
31  // Node interface.
32  auto properties() const { return hilti::node::Properties{}; }
33 };
34 
35 } // namespace statement
36 } // namespace spicy
Definition: print.h:16
Definition: meta.h:18
Definition: statement.h:14
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:99
Definition: node.h:358