Spicy
auto.h
1 // Copyright (c) 2020 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  bool operator==(const Auto& /* other */) const { return true; }
15 
17  auto isEqual(const Type& other) const { return node::isEqual(this, other); }
19  auto _isResolved(ResolvedState* rstate) const { return false; }
21  auto properties() const { return node::Properties{}; }
22 
27  static Auto create(Meta m = Meta()) { return Auto(std::move(m)); }
28 
29 private:
30  Auto(Meta m = Meta()) : TypeBase(std::move(m)) {}
31 };
32 
34 static const Type auto_ = Auto::create(Location("<singleton>"));
35 
36 } // namespace hilti::type
auto isEqual(const Type &other) const
Definition: auto.h:17
auto properties() const
Definition: auto.h:21
Definition: meta.h:19
static Auto create(Meta m=Meta())
Definition: auto.h:27
Definition: type.h:158
auto _isResolved(ResolvedState *rstate) const
Definition: auto.h:19
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:97
Definition: type.h:197
Definition: type.h:32
Definition: location.h:18
Definition: auto.h:12
Definition: type.h:25