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

Function collectReachableCallables

libsolidity/codegen/ir/IRGenerator.cpp:77–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77std::set<CallableDeclaration const*, ASTNode::CompareByID> collectReachableCallables(
78 CallGraph const& _graph
79)
80{
81 std::set<CallableDeclaration const*, ASTNode::CompareByID> reachableCallables;
82 for (CallGraph::Node const& reachableNode: _graph.edges | ranges::views::keys)
83 if (std::holds_alternative<CallableDeclaration const*>(reachableNode))
84 reachableCallables.emplace(std::get<CallableDeclaration const*>(reachableNode));
85
86 return reachableCallables;
87}
88
89}
90

Callers 1

generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected