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 namespace spicy {
12 namespace statement {
13 
15 public:
16  Print(std::vector<hilti::Expression> e, Meta m = Meta())
17  : hilti::NodeBase(hilti::nodes(std::move(e)), std::move(m)) {}
18 
19  auto expressions() const { return childs<hilti::Expression>(0, -1); }
20 
21  bool operator==(const Print& /* other */) const {
22  // return expressions() == other.expressions(); FIXME
23  return false;
24  }
25 
26  // Statement interface.
27  auto isEqual(const hilti::Statement& other) const { return hilti::node::isEqual(this, other); }
28 
29  // Node interface.
30  auto properties() const { return hilti::node::Properties{}; }
31 };
32 
33 } // namespace statement
34 } // namespace spicy
Definition: print.h:14
Definition: meta.h:18
Definition: statement.h:14
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:83
Definition: node.h:318