diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-11 00:11:00 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-11 23:38:37 +0800 |
commit | 53a497b4d85c0748243c899f0a860518eb54bddc (patch) | |
tree | 7a6072c30e16dd1433a29371ba182b4166e2ac74 /libsolidity/ast | |
parent | 644c91fc2dedf399b2731b37a0795a18b6cee04e (diff) | |
download | dexon-solidity-53a497b4d85c0748243c899f0a860518eb54bddc.tar.gz dexon-solidity-53a497b4d85c0748243c899f0a860518eb54bddc.tar.zst dexon-solidity-53a497b4d85c0748243c899f0a860518eb54bddc.zip |
Add analysis-only experimental features
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/ExperimentalFeatures.h | 11 |
1 files changed, 9 insertions, 2 deletions
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<ExperimentalFeature, bool> ExperimentalFeatureOnlyAnalysis = { + { ExperimentalFeature::TestOnlyAnalysis, true }, }; static const std::map<std::string, ExperimentalFeature> ExperimentalFeatureNames = { { "__test", ExperimentalFeature::Test }, + { "__testOnlyAnalysis", ExperimentalFeature::TestOnlyAnalysis }, }; } |