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

Method populateHomonyms

libsolidity/analysis/DeclarationContainer.cpp:202–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void DeclarationContainer::populateHomonyms(std::back_insert_iterator<Homonyms> _it) const
203{
204 for (DeclarationContainer const* innerContainer: m_innerContainers)
205 innerContainer->populateHomonyms(_it);
206
207 for (auto [name, location]: m_homonymCandidates)
208 {
209 ResolvingSettings settings;
210 settings.recursive = true;
211 settings.alsoInvisible = true;
212 std::vector<Declaration const*> const& declarations = m_enclosingContainer->resolveName(name, std::move(settings));
213 if (!declarations.empty())
214 _it = make_pair(location, declarations);
215 }
216}

Callers 1

Calls 2

resolveNameMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected