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

Method addToInternalDispatch

libsolidity/codegen/ir/IRGenerationContext.cpp:205–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void IRGenerationContext::addToInternalDispatch(FunctionDefinition const& _function)
206{
207 FunctionType const* functionType = TypeProvider::function(_function, FunctionType::Kind::Internal);
208 solAssert(functionType);
209
210 YulArity arity = YulArity::fromType(*functionType);
211 DispatchQueue& dispatchQueue = m_internalDispatchMap[arity];
212 if (ranges::find(dispatchQueue, &_function) == ranges::end(dispatchQueue))
213 {
214 dispatchQueue.push_back(&_function);
215 enqueueFunctionForCodeGeneration(_function);
216 }
217}
218
219
220void IRGenerationContext::internalFunctionCalledThroughDispatch(YulArity const& _arity)

Calls 1

functionFunction · 0.85

Tested by

no test coverage detected