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

Method identityFunction

libsolidity/codegen/YulUtilFunctions.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59std::string YulUtilFunctions::identityFunction()
60{
61 std::string functionName = "identity";
62 return m_functionCollector.createFunction("identity", [&](std::vector<std::string>& _args, std::vector<std::string>& _rets) {
63 _args.push_back("value");
64 _rets.push_back("ret");
65 return "ret := value";
66 });
67}
68
69std::string YulUtilFunctions::combineExternalFunctionIdFunction()
70{

Callers

nothing calls this directly

Calls 1

createFunctionMethod · 0.45

Tested by

no test coverage detected