diff options
Diffstat (limited to 'libsolidity/ast/ExperimentalFeatures.h')
-rw-r--r-- | libsolidity/ast/ExperimentalFeatures.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/libsolidity/ast/ExperimentalFeatures.h b/libsolidity/ast/ExperimentalFeatures.h index b0a07142..04b26300 100644 --- a/libsolidity/ast/ExperimentalFeatures.h +++ b/libsolidity/ast/ExperimentalFeatures.h @@ -27,9 +27,20 @@ namespace dev namespace solidity { -enum class ExperimentalFeature {}; - -static const std::map<std::string, ExperimentalFeature> ExperimentalFeatureNames = {}; +enum class ExperimentalFeature +{ + Test, + TestOnlyAnalysis +}; + +static const std::map<ExperimentalFeature, bool> ExperimentalFeatureOnlyAnalysis = { + { ExperimentalFeature::TestOnlyAnalysis, true }, +}; + +static const std::map<std::string, ExperimentalFeature> ExperimentalFeatureNames = { + { "__test", ExperimentalFeature::Test }, + { "__testOnlyAnalysis", ExperimentalFeature::TestOnlyAnalysis }, +}; } } |