8 #include <hilti/ast/ctor.h> 9 #include <hilti/ast/expression.h> 10 #include <hilti/ast/type.h> 28 auto typeArguments()
const {
return children<hilti::Expression>(1, -1); }
30 void setTypeArguments(std::vector<hilti::Expression> args) {
32 c.erase(c.begin() + 1, c.end());
33 for (
auto&& a : args )
34 c.emplace_back(std::move(a));
37 bool operator==(
const Default& other)
const {
return type() == other.
type(); }
40 const Type&
type()
const {
return child<Type>(0); }
44 bool isLhs()
const {
return false; }
48 auto isEqual(
const Ctor& other)
const {
return node::isEqual(
this, other); }
Definition: optional.h:79
auto properties() const
Definition: default.h:50
const auto & children() const
Definition: node.h:470
const Type & type() const
Definition: default.h:40
auto isEqual(const Ctor &other) const
Definition: default.h:48
bool isConstant() const
Definition: default.h:42
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:99
Default(Type t, std::vector< Expression > type_args, Meta m=Meta())
Definition: default.h:25
Default(Type t, Meta m=Meta())
Definition: default.h:19
bool isLhs() const
Definition: default.h:44
auto isTemporary() const
Definition: default.h:46