diff options
author | chriseth <chris@ethereum.org> | 2017-04-13 00:32:25 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-04-25 22:49:04 +0800 |
commit | dfb7d5ebd955d390142241a2abcb95995ef1ba04 (patch) | |
tree | 6a6c4bf8091fd8d6e60272f9fb94b9b38fda4530 /libsolidity/ast/ASTAnnotations.h | |
parent | 4afd54b23594563036498943087bcd06ef021f94 (diff) | |
download | dexon-solidity-dfb7d5ebd955d390142241a2abcb95995ef1ba04.tar.gz dexon-solidity-dfb7d5ebd955d390142241a2abcb95995ef1ba04.tar.zst dexon-solidity-dfb7d5ebd955d390142241a2abcb95995ef1ba04.zip |
Move analysis out of code generator.
Diffstat (limited to 'libsolidity/ast/ASTAnnotations.h')
-rw-r--r-- | libsolidity/ast/ASTAnnotations.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTAnnotations.h b/libsolidity/ast/ASTAnnotations.h index 9ca7f66c..48524be3 100644 --- a/libsolidity/ast/ASTAnnotations.h +++ b/libsolidity/ast/ASTAnnotations.h @@ -113,6 +113,8 @@ struct StatementAnnotation: ASTAnnotation, DocumentedAnnotation namespace assembly { struct Identifier; // forward +struct Block; // forward +struct Scope; // forward } struct InlineAssemblyAnnotation: StatementAnnotation @@ -125,6 +127,8 @@ struct InlineAssemblyAnnotation: StatementAnnotation /// Mapping containing resolved references to external identifiers and their value size std::map<assembly::Identifier const*, ExternalIdentifierInfo> externalReferences; + /// Mapping containing the scopes (the result of the analysis phase). + std::map<assembly::Block const*, std::shared_ptr<assembly::Scope>> scopes; }; struct ReturnAnnotation: StatementAnnotation |