diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-01-17 20:02:01 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-01-26 21:16:26 +0800 |
commit | fcf483ee6b284f7e6d6f3c7f593cd95fb298da0d (patch) | |
tree | 20244b3898b4cd7812ede00f6cc30c9fce68b718 /libsolidity/interface/CompilerStack.h | |
parent | 2122d2d7281504aae91063f48790803549e4972d (diff) | |
download | dexon-solidity-fcf483ee6b284f7e6d6f3c7f593cd95fb298da0d.tar.gz dexon-solidity-fcf483ee6b284f7e6d6f3c7f593cd95fb298da0d.tar.zst dexon-solidity-fcf483ee6b284f7e6d6f3c7f593cd95fb298da0d.zip |
Add option to store literal sources in metadata
Diffstat (limited to 'libsolidity/interface/CompilerStack.h')
-rw-r--r-- | libsolidity/interface/CompilerStack.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h index 61edc284..9ee70215 100644 --- a/libsolidity/interface/CompilerStack.h +++ b/libsolidity/interface/CompilerStack.h @@ -177,6 +177,7 @@ public: /// Can be one of 4 types defined at @c DocumentationType Json::Value const& metadata(std::string const& _contractName, DocumentationType _type) const; std::string const& onChainMetadata(std::string const& _contractName) const; + void useMetadataLiteralSources(bool _metadataLiteralSources) { m_metadataLiteralSources = _metadataLiteralSources; } /// @returns the previously used scanner, useful for counting lines during error reporting. Scanner const& scanner(std::string const& _sourceName = "") const; @@ -274,6 +275,7 @@ private: std::map<std::string const, Contract> m_contracts; std::string m_formalTranslation; ErrorList m_errors; + bool m_metadataLiteralSources = false; }; } |