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

Method destTypeFunctionType

libsolidity/experimental/ast/TypeSystemHelper.cpp:259–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259std::tuple<experimental::Type, experimental::Type> TypeSystemHelpers::destTypeFunctionType(Type _functionType) const
260{
261 auto [constructor, arguments] = destTypeConstant(_functionType);
262 solAssert(constructor == typeSystem.constructor(PrimitiveType::TypeFunction));
263 solAssert(arguments.size() == 2);
264 return std::make_tuple(arguments.front(), arguments.back());
265}
266
267bool TypeSystemHelpers::isTypeFunctionType(Type _type) const
268{

Calls 2

constructorMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected