| 739 | } |
| 740 | |
| 741 | bool 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 | |
| 758 | CompilerStack::PipelineConfig CompilerStack::requestedPipelineConfig(ContractDefinition const& _contract) const |
| 759 | { |