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

Method function

libsolidity/experimental/codegen/Common.cpp:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33{
34
35std::string IRNames::function(TypeEnvironment const& _env, FunctionDefinition const& _function, Type _type)
36{
37 if (_function.isConstructor())
38 return constructor(*_function.annotation().contract);
39
40 return "fun_" + _function.name() + "_" + std::to_string(_function.id()) + "$" + TypeEnvironmentHelpers{_env}.canonicalTypeName(_type) + "$";
41}
42
43std::string IRNames::function(VariableDeclaration const& _varDecl)
44{

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected