8 #include <hilti/ast/ctor.h> 9 #include <hilti/ast/expression.h> 10 #include <hilti/ast/type.h> 27 auto typeArguments()
const {
return children<hilti::Expression>(1, -1); }
29 void setTypeArguments(std::vector<hilti::Expression> args) {
31 c.erase(c.begin() + 1, c.end());
32 for (
auto&& a : args )
33 c.emplace_back(std::move(a));
36 bool operator==(
const Default& other)
const {
return type() == other.
type(); }
39 const Type&
type()
const {
return child<Type>(0); }
43 bool isLhs()
const {
return false; }
47 auto isEqual(
const Ctor& other)
const {
return node::isEqual(
this, other); }
Definition: optional.h:79
auto properties() const
Definition: default.h:49
const auto & children() const
Definition: node.h:471
const Type & type() const
Definition: default.h:39
auto isEqual(const Ctor &other) const
Definition: default.h:47
bool isConstant() const
Definition: default.h:41
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:97
Default(Type t, std::vector< Expression > type_args, Meta m=Meta())
Definition: default.h:24
Default(Type t, Meta m=Meta())
Definition: default.h:18
bool isLhs() const
Definition: default.h:43
auto isTemporary() const
Definition: default.h:45