8 #include <hilti/ast/declaration.h> 9 #include <hilti/ast/expression.h> 10 #include <hilti/ast/id.h> 20 :
DeclarationBase(nodes(std::move(
id), std::move(attr)), std::move(m)) {}
22 auto expression()
const {
return children()[1].tryAs<hilti::Expression>(); }
24 bool operator==(
const Property& other)
const {
return id() == other.
id() && expression() == other.expression(); }
29 const ID&
id()
const {
return child<ID>(0); }
31 Linkage
linkage()
const {
return Linkage::Private; }
bool isConstant() const
Definition: property.h:27
Definition: declaration.h:54
Linkage linkage() const
Definition: property.h:31
auto properties() const
Definition: property.h:38
const ID & id() const
Definition: property.h:29
const Node none
Definition: node.cc:14
const auto & children() const
Definition: node.h:472
std::string displayName() const
Definition: property.h:33
Definition: declaration.h:88
Definition: property.h:15
auto isEqual(const Declaration &other) const
Definition: property.h:35
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:98
Definition: declaration.h:19