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

Method destFunctionType

libsolidity/experimental/ast/TypeSystemHelper.cpp:241–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241std::tuple<experimental::Type, experimental::Type> TypeSystemHelpers::destFunctionType(Type _functionType) const
242{
243 auto [constructor, arguments] = destTypeConstant(_functionType);
244 solAssert(constructor == typeSystem.constructor(PrimitiveType::Function));
245 solAssert(arguments.size() == 2);
246 return std::make_tuple(arguments.front(), arguments.back());
247}
248
249bool TypeSystemHelpers::isFunctionType(Type _type) const
250{

Callers 1

endVisitMethod · 0.80

Calls 2

constructorMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected