MCPcopy Create free account
hub / github.com/argotorg/solidity / destTypeConstant

Method destTypeConstant

libsolidity/experimental/ast/TypeSystemHelper.cpp:203–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203std::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
216bool TypeSystemHelpers::isTypeConstant(Type _type) const
217{

Callers 5

memberTypeMethod · 0.80
unifyMethod · 0.80
instantiateClassMethod · 0.80
endVisitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected