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

Method withBoundFirstArgument

libsolidity/ast/Types.cpp:3751–3769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3749}
3750
3751FunctionTypePointer FunctionType::withBoundFirstArgument() const
3752{
3753 solAssert(!m_parameterTypes.empty(), "");
3754 solAssert(!gasSet(), "");
3755 solAssert(!valueSet(), "");
3756 solAssert(!saltSet(), "");
3757 Options options = Options::fromFunctionType(*this);
3758 options.hasBoundFirstArgument = true;
3759 return TypeProvider::function(
3760 m_parameterTypes,
3761 m_returnParameterTypes,
3762 m_parameterNames,
3763 m_returnParameterNames,
3764 m_kind,
3765 m_stateMutability,
3766 m_declaration,
3767 options
3768 );
3769}
3770
3771FunctionTypePointer FunctionType::asExternallyCallableFunction(bool _inLibrary) const
3772{

Callers 3

endVisitMethod · 0.80
attachedFunctionsMethod · 0.80
nativeMembersMethod · 0.80

Calls 2

functionFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected