aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-11 00:11:00 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-11 23:38:37 +0800
commit53a497b4d85c0748243c899f0a860518eb54bddc (patch)
tree7a6072c30e16dd1433a29371ba182b4166e2ac74 /libsolidity/ast
parent644c91fc2dedf399b2731b37a0795a18b6cee04e (diff)
downloaddexon-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.h11
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 },
};
}