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