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 {
10 namespace type {
11 
14 public:
15  bool operator==(const Auto& /* other */) const { return true; }
16 
18  auto isEqual(const Type& other) const { return node::isEqual(this, other); }
20  auto _isResolved(ResolvedState* rstate) const { return false; }
22  auto properties() const { return node::Properties{}; }
23 
28  static Auto create(Meta m = Meta()) { return Auto(std::move(m)); }
29 
30 private:
31  Auto(Meta m = Meta()) : TypeBase(std::move(m)) {}
32 };
33 
35 static const Type auto_ = Auto::create(Location("<singleton>"));
36 
37 } // namespace type
38 } // namespace hilti
auto isEqual(const Type &other) const
Definition: auto.h:18
auto properties() const
Definition: auto.h:22
Definition: meta.h:18
static Auto create(Meta m=Meta())
Definition: auto.h:28
Definition: type.h:159
auto _isResolved(ResolvedState *rstate) const
Definition: auto.h:20
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:99
Definition: type.h:198
Definition: type.h:33
Definition: location.h:17
Definition: auto.h:13