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

Method typeViaContractName

libsolidity/ast/AST.cpp:494–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494Type const* FunctionDefinition::typeViaContractName() const
495{
496 if (libraryFunction())
497 {
498 if (isPublic())
499 return FunctionType(*this).asExternallyCallableFunction(true);
500 else
501 return TypeProvider::function(*this, FunctionType::Kind::Internal);
502 }
503 else
504 return TypeProvider::function(*this, FunctionType::Kind::Declaration);
505}
506
507std::string FunctionDefinition::externalSignature() const
508{

Callers 5

endVisitMethod · 0.45
operatorDefinitionsMethod · 0.45
attachedFunctionsMethod · 0.45
nativeMembersMethod · 0.45

Calls 3

functionFunction · 0.85
FunctionTypeClass · 0.70

Tested by

no test coverage detected