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

Method userDefinedFunctionType

libsolidity/ast/AST.cpp:947–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945}
946
947FunctionType const* UnaryOperation::userDefinedFunctionType() const
948{
949 if (*annotation().userDefinedFunction == nullptr)
950 return nullptr;
951
952 FunctionDefinition const* userDefinedFunction = *annotation().userDefinedFunction;
953 return dynamic_cast<FunctionType const*>(
954 userDefinedFunction->libraryFunction() ?
955 userDefinedFunction->typeViaContractName() :
956 userDefinedFunction->type()
957 );
958}
959
960FunctionType const* BinaryOperation::userDefinedFunctionType() const
961{

Callers 6

visitMethod · 0.80
endVisitMethod · 0.80
isSimpleCounterLoopMethod · 0.80
endVisitMethod · 0.80
visitMethod · 0.80
visitMethod · 0.80

Calls 3

libraryFunctionMethod · 0.80
typeViaContractNameMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected