From 53a497b4d85c0748243c899f0a860518eb54bddc Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 10 Aug 2017 17:11:00 +0100 Subject: Add analysis-only experimental features --- libsolidity/ast/ExperimentalFeatures.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libsolidity') diff --git a/libsolidity/ast/ExperimentalFeatures.h b/libsolidity/ast/ExperimentalFeatures.h index 2338b881..04b26300 100644 --- a/libsolidity/ast/ExperimentalFeatures.h +++ b/libsolidity/ast/ExperimentalFeatures.h @@ -27,12 +27,19 @@ namespace dev namespace solidity { -enum class ExperimentalFeature { - Test +enum class ExperimentalFeature +{ + Test, + TestOnlyAnalysis +}; + +static const std::map ExperimentalFeatureOnlyAnalysis = { + { ExperimentalFeature::TestOnlyAnalysis, true }, }; static const std::map ExperimentalFeatureNames = { { "__test", ExperimentalFeature::Test }, + { "__testOnlyAnalysis", ExperimentalFeature::TestOnlyAnalysis }, }; } -- cgit