8 #include <hilti/ast/declarations/parameter.h> 9 #include <hilti/ast/operator.h> 10 #include <hilti/ast/type.h> 22 OperandList(std::vector<operator_::Operand> operands) : _operands(std::move(operands)) {}
24 const auto& operands()
const {
return _operands; }
27 auto isEqual(
const Type& other)
const {
return node::isEqual(
this, other); }
29 auto _isResolved(ResolvedState* rstate)
const {
return true; }
33 bool operator==(
const OperandList& other)
const {
return operands() == other.operands(); }
35 template<
typename Container>
36 static OperandList fromParameters(
const Container& params) {
37 std::vector<operator_::Operand> ops;
39 for (
const auto& p : params ) {
41 p.default_().has_value(), p.default_()};
43 ops.push_back(std::move(op));
50 std::vector<operator_::Operand> _operands;
Definition: operand-list.h:20
Definition: operator.h:191
auto _isResolved(ResolvedState *rstate) const
Definition: operand-list.h:29
std::optional< ID > id
Definition: operator.h:206
auto isEqual(const Type &other) const
Definition: operand-list.h:27
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:97
auto properties() const
Definition: operand-list.h:31