| 201 | } |
| 202 | |
| 203 | std::tuple<TypeConstructor, std::vector<experimental::Type>> TypeSystemHelpers::destTypeConstant(Type _type) const |
| 204 | { |
| 205 | using ResultType = std::tuple<TypeConstructor, std::vector<Type>>; |
| 206 | return std::visit(util::GenericVisitor{ |
| 207 | [&](TypeConstant const& _type) -> ResultType { |
| 208 | return std::make_tuple(_type.constructor, _type.arguments); |
| 209 | }, |
| 210 | [](auto const&) -> ResultType { |
| 211 | solAssert(false); |
| 212 | } |
| 213 | }, _type); |
| 214 | } |
| 215 | |
| 216 | bool TypeSystemHelpers::isTypeConstant(Type _type) const |
| 217 | { |
no outgoing calls
no test coverage detected