diff options
author | Christian <c@ethdev.com> | 2014-12-03 14:46:55 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-03 17:44:46 +0800 |
commit | 328387d6d0a14143f1634df11036a91fad85cec9 (patch) | |
tree | 0c790402332a3fdc4fc8beddd57929db148b8c36 /CompilerStack.h | |
parent | 9dadeea37710fe23a7512035b69356f3405ee6f1 (diff) | |
download | dexon-solidity-328387d6d0a14143f1634df11036a91fad85cec9.tar.gz dexon-solidity-328387d6d0a14143f1634df11036a91fad85cec9.tar.zst dexon-solidity-328387d6d0a14143f1634df11036a91fad85cec9.zip |
Import directive.
Diffstat (limited to 'CompilerStack.h')
-rw-r--r-- | CompilerStack.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CompilerStack.h b/CompilerStack.h index 6cae8660..19f3cf99 100644 --- a/CompilerStack.h +++ b/CompilerStack.h @@ -32,6 +32,7 @@ namespace solidity { // forward declarations class Scanner; +class SourceUnit; class ContractDefinition; class Compiler; class GlobalContext; @@ -65,7 +66,7 @@ public: /// Returns the previously used scanner, useful for counting lines during error reporting. Scanner const& getScanner() const { return *m_scanner; } - ContractDefinition& getAST() const { return *m_contractASTNode; } + SourceUnit& getAST() const { return *m_sourceUnitASTNode; } /// Compile the given @a _sourceCode to bytecode. If a scanner is provided, it is used for /// scanning the source code - this is useful for printing exception information. @@ -74,7 +75,7 @@ public: private: std::shared_ptr<Scanner> m_scanner; std::shared_ptr<GlobalContext> m_globalContext; - std::shared_ptr<ContractDefinition> m_contractASTNode; + std::shared_ptr<SourceUnit> m_sourceUnitASTNode; bool m_parseSuccessful; std::string m_interface; std::shared_ptr<Compiler> m_compiler; |