diff options
author | chriseth <c@ethdev.com> | 2015-12-15 22:46:03 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-12-18 19:46:56 +0800 |
commit | 603dc58040e62ef99d0a10084340dd4548a438a8 (patch) | |
tree | 2c9246af514f8023117800bd8675703fc8d02fb4 /libsolidity/ast/ASTAnnotations.h | |
parent | d3c459b5a99715c96733825f78d63cc57265ee3c (diff) | |
download | dexon-solidity-603dc58040e62ef99d0a10084340dd4548a438a8.tar.gz dexon-solidity-603dc58040e62ef99d0a10084340dd4548a438a8.tar.zst dexon-solidity-603dc58040e62ef99d0a10084340dd4548a438a8.zip |
Simple aliasing during import.
Diffstat (limited to 'libsolidity/ast/ASTAnnotations.h')
-rw-r--r-- | libsolidity/ast/ASTAnnotations.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTAnnotations.h b/libsolidity/ast/ASTAnnotations.h index 0bc91c60..235338bb 100644 --- a/libsolidity/ast/ASTAnnotations.h +++ b/libsolidity/ast/ASTAnnotations.h @@ -54,10 +54,20 @@ struct DocumentedAnnotation std::multimap<std::string, DocTag> docTags; }; +struct SourceUnitAnnotation: ASTAnnotation +{ + /// The "absolute" (in the compiler sense) path of this source unit. + std::string path; + /// The exported symbols (all global symbols). + std::map<ASTString, std::vector<Declaration const*>> exportedSymbols; +}; + struct ImportAnnotation: ASTAnnotation { /// The absolute path of the source unit to import. std::string absolutePath; + /// The actual source unit. + SourceUnit const* sourceUnit = nullptr; }; struct TypeDeclarationAnnotation: ASTAnnotation |