aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerStack.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-04 01:52:28 +0800
committerChristian <c@ethdev.com>2014-12-04 01:52:28 +0800
commitd2cf34548322598ae067434a61a171bd190fc2c9 (patch)
tree9f89db707b8435f4774aea1115249e076fb37b74 /CompilerStack.h
parent254df50feab6bb4c9f013257591b73919e4013a5 (diff)
downloaddexon-solidity-d2cf34548322598ae067434a61a171bd190fc2c9.tar.gz
dexon-solidity-d2cf34548322598ae067434a61a171bd190fc2c9.tar.zst
dexon-solidity-d2cf34548322598ae067434a61a171bd190fc2c9.zip
Improved external interface for multi-source and multi-contract compilation.
Diffstat (limited to 'CompilerStack.h')
-rw-r--r--CompilerStack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/CompilerStack.h b/CompilerStack.h
index 0520f2b1..a5b8ec41 100644
--- a/CompilerStack.h
+++ b/CompilerStack.h
@@ -54,6 +54,9 @@ public:
void parse();
/// Sets the given source code as the only source unit and parses it.
void parse(std::string const& _sourceCode);
+ /// Returns a list of the contract names in the sources.
+ std::vector<std::string> getContractNames();
+
/// Compiles the source units that were prevously added and parsed.
void compile(bool _optimize = false);
/// Parses and compiles the given source code.