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

Method isRequestedContract

libsolidity/interface/CompilerStack.cpp:741–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741bool CompilerStack::isRequestedContract(ContractDefinition const& _contract) const
742{
743 /// In case nothing was specified in selectedContracts.
744 if (m_selectedContracts.empty())
745 return true;
746
747 for (auto const& key: std::vector<std::string>{"", _contract.sourceUnitName()})
748 {
749 auto const& it = m_selectedContracts.find(key);
750 if (it != m_selectedContracts.end())
751 if (it->second.count(_contract.name()) || it->second.count(""))
752 return true;
753 }
754
755 return false;
756}
757
758CompilerStack::PipelineConfig CompilerStack::requestedPipelineConfig(ContractDefinition const& _contract) const
759{

Callers

nothing calls this directly

Calls 6

sourceUnitNameMethod · 0.80
emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45
countMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected