From 603dc58040e62ef99d0a10084340dd4548a438a8 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 15 Dec 2015 15:46:03 +0100 Subject: Simple aliasing during import. --- libsolidity/ast/ASTAnnotations.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libsolidity/ast/ASTAnnotations.h') 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 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> 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 -- cgit