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

Method function

libsolidity/codegen/ir/Common.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51std::string IRNames::function(FunctionDefinition const& _function)
52{
53 if (_function.isConstructor())
54 return constructor(*_function.annotation().contract);
55
56 return "fun_" + _function.name() + "_" + std::to_string(_function.id());
57}
58
59std::string IRNames::function(VariableDeclaration const& _varDecl)
60{

Callers

nothing calls this directly

Calls 5

constructorFunction · 0.85
isConstructorMethod · 0.80
to_stringFunction · 0.50
nameMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected