diff options
author | chriseth <chris@ethereum.org> | 2017-08-10 23:56:04 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-14 20:11:41 +0800 |
commit | d1ad62fccc02dba20129d59a81f260b9ac6b41de (patch) | |
tree | 0c2e75b35b510a49027e9eb4ffb760955f24af74 /libsolidity/ast/ExperimentalFeatures.h | |
parent | ee6f56d6418d1d25690702adf55a00733517062c (diff) | |
download | dexon-solidity-d1ad62fccc02dba20129d59a81f260b9ac6b41de.tar.gz dexon-solidity-d1ad62fccc02dba20129d59a81f260b9ac6b41de.tar.zst dexon-solidity-d1ad62fccc02dba20129d59a81f260b9ac6b41de.zip |
Experimental feature switch for ABI encoder.
Diffstat (limited to 'libsolidity/ast/ExperimentalFeatures.h')
-rw-r--r-- | libsolidity/ast/ExperimentalFeatures.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libsolidity/ast/ExperimentalFeatures.h b/libsolidity/ast/ExperimentalFeatures.h index 04b26300..0c03ea4a 100644 --- a/libsolidity/ast/ExperimentalFeatures.h +++ b/libsolidity/ast/ExperimentalFeatures.h @@ -29,15 +29,19 @@ namespace solidity enum class ExperimentalFeature { + ABIEncoderV2, // new ABI encoder that makes use of JULIA Test, TestOnlyAnalysis }; -static const std::map<ExperimentalFeature, bool> ExperimentalFeatureOnlyAnalysis = { +static const std::map<ExperimentalFeature, bool> ExperimentalFeatureOnlyAnalysis = +{ { ExperimentalFeature::TestOnlyAnalysis, true }, }; -static const std::map<std::string, ExperimentalFeature> ExperimentalFeatureNames = { +static const std::map<std::string, ExperimentalFeature> ExperimentalFeatureNames = +{ + { "ABIEncoderV2", ExperimentalFeature::ABIEncoderV2 }, { "__test", ExperimentalFeature::Test }, { "__testOnlyAnalysis", ExperimentalFeature::TestOnlyAnalysis }, }; |