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

Method functionReferenced

libsolidity/analysis/FunctionCallGraph.cpp:278–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278void FunctionCallGraphBuilder::functionReferenced(CallableDeclaration const& _callable, bool _calledDirectly)
279{
280 if (_calledDirectly)
281 {
282 solAssert(
283 std::holds_alternative<CallGraph::SpecialNode>(m_currentNode) || m_graph.edges.count(m_currentNode) > 0,
284 "Adding an edge from a node that has not been visited yet."
285 );
286
287 add(m_currentNode, &_callable);
288 }
289 else
290 add(CallGraph::SpecialNode::InternalDispatch, &_callable);
291
292 enqueueCallable(_callable);
293}
294
295std::ostream& solidity::frontend::operator<<(std::ostream& _out, CallGraph::Node const& _node)
296{

Callers 2

buildCreationGraphMethod · 0.80
buildDeployedGraphMethod · 0.80

Calls 1

countMethod · 0.45

Tested by

no test coverage detected