8 #include <hilti/ast/attribute.h> 9 #include <hilti/ast/id.h> 10 #include <hilti/ast/type.h> 13 namespace declaration {
23 :
DeclarationBase(nodes(std::move(
id), std::move(type), std::move(attrs)), std::move(m)), _linkage(
linkage) {}
25 const auto& type()
const {
return child<hilti::Type>(1); }
29 bool isOnHeap()
const {
30 if (
auto x = attributes() )
31 return x->find(
"&on-heap").has_value();
47 bool operator==(
const Type& other)
const {
return id() == other.
id() && type() == other.type(); }
55 const ID&
id()
const {
return child<ID>(0); }
57 Linkage
linkage()
const {
return _linkage; }
Definition: declaration.h:53
bool isConstant() const
Definition: type.h:53
const Node none
Definition: node.cc:14
const ID & id() const
Definition: type.h:55
auto typeID() const
Definition: type.h:37
auto isEqual(const Declaration &other) const
Definition: type.h:61
auto properties() const
Definition: type.h:64
Definition: attribute.h:145
Definition: declaration.h:87
auto cxxID() const
Definition: type.h:40
auto resolvedID() const
Definition: type.h:43
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:99
Definition: node-ref.h:44
const auto & childs() const
Definition: node.h:470
Linkage linkage() const
Definition: type.h:57
std::string displayName() const
Definition: type.h:59