Spicy
error.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/type.h>
8 
9 namespace hilti::type {
10 
13 public:
14  Error(Meta m = Meta()) : TypeBase(std::move(m)) {}
15 
16  bool operator==(const Error& /* other */) const { return true; }
17 
19  auto isEqual(const Type& other) const { return node::isEqual(this, other); }
21  auto _isResolved(ResolvedState* rstate) const { return true; }
22 
24  auto properties() const { return node::Properties{}; }
25 };
26 
27 } // namespace hilti::type
Definition: error.h:12
Definition: meta.h:19
auto properties() const
Definition: error.h:24
auto _isResolved(ResolvedState *rstate) const
Definition: error.h:21
Definition: type.h:158
auto isEqual(const Type &other) const
Definition: error.h:19
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:97
Definition: type.h:197
Definition: type.h:32
Definition: type.h:25