Merge pull request #4208 from ethereum/extract-name-and-type-tests

Extract name and type tests
This commit is contained in:
chriseth
2018-06-04 19:54:14 +02:00
committed by GitHub
552 changed files with 4245 additions and 7041 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ private:
bool ViewPureChecker::check()
{
// The bool means "enforce view with errors".
map<ContractDefinition const*, bool> contracts;
vector<pair<ContractDefinition const*, bool>> contracts;
for (auto const& node: m_ast)
{
@@ -125,7 +125,7 @@ bool ViewPureChecker::check()
solAssert(source, "");
bool enforceView = source->annotation().experimentalFeatures.count(ExperimentalFeature::V050);
for (ContractDefinition const* c: source->filteredNodes<ContractDefinition>(source->nodes()))
contracts[c] = enforceView;
contracts.emplace_back(c, enforceView);
}
// Check modifiers first to infer their state mutability.