diff options
author | Christian <c@ethdev.com> | 2014-12-04 00:45:12 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-04 01:51:59 +0800 |
commit | 254df50feab6bb4c9f013257591b73919e4013a5 (patch) | |
tree | f8258a07f87046e1695373bc6024af87f51f51be /NameAndTypeResolver.h | |
parent | 328387d6d0a14143f1634df11036a91fad85cec9 (diff) | |
download | dexon-solidity-254df50feab6bb4c9f013257591b73919e4013a5.tar.gz dexon-solidity-254df50feab6bb4c9f013257591b73919e4013a5.tar.zst dexon-solidity-254df50feab6bb4c9f013257591b73919e4013a5.zip |
Multi-source and multi-contract compiler.
Diffstat (limited to 'NameAndTypeResolver.h')
-rw-r--r-- | NameAndTypeResolver.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/NameAndTypeResolver.h b/NameAndTypeResolver.h index 797eca60..816d8006 100644 --- a/NameAndTypeResolver.h +++ b/NameAndTypeResolver.h @@ -42,7 +42,13 @@ class NameAndTypeResolver: private boost::noncopyable { public: explicit NameAndTypeResolver(std::vector<Declaration*> const& _globals); + /// Registers all declarations found in the source unit. + void registerDeclarations(SourceUnit& _sourceUnit); + /// Resolves all names and types referenced from the given contract. void resolveNamesAndTypes(ContractDefinition& _contract); + /// Updates the given global declaration (used for "this"). Not to be used with declarations + /// that create their own scope. + void updateDeclaration(Declaration& _declaration); /// Resolves the given @a _name inside the scope @a _scope. If @a _scope is omitted, /// the global scope is used (i.e. the one containing only the contract). |