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

Method processQueue

libsolidity/analysis/FunctionCallGraph.cpp:257–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void FunctionCallGraphBuilder::processQueue()
258{
259 solAssert(m_currentNode == CallGraph::Node(CallGraph::SpecialNode::Entry), "Visit queue is already being processed.");
260
261 while (!m_visitQueue.empty())
262 {
263 m_currentNode = m_visitQueue.front();
264 solAssert(std::holds_alternative<CallableDeclaration const*>(m_currentNode), "");
265
266 m_visitQueue.pop_front();
267 std::get<CallableDeclaration const*>(m_currentNode)->accept(*this);
268 }
269
270 m_currentNode = CallGraph::SpecialNode::Entry;
271}
272
273void FunctionCallGraphBuilder::add(CallGraph::Node _caller, CallGraph::Node _callee)
274{

Callers 2

buildCreationGraphMethod · 0.80
buildDeployedGraphMethod · 0.80

Calls 2

emptyMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected