diff options
author | Jose <jose@zeroc.com> | 2016-10-17 14:28:32 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-10-17 14:28:32 +0200 |
commit | 3656b895fba9559efbc2ddb5447d2409fc28cd20 (patch) | |
tree | 87b00607e2d00f284506e9ac7dce014eafc931fd /cpp/src/slice2js/Gen.h | |
parent | Merge remote-tracking branch 'origin/3.6' (diff) | |
download | ice-3656b895fba9559efbc2ddb5447d2409fc28cd20.tar.bz2 ice-3656b895fba9559efbc2ddb5447d2409fc28cd20.tar.xz ice-3656b895fba9559efbc2ddb5447d2409fc28cd20.zip |
Add support for JavaScript import/expor in generated code
Diffstat (limited to 'cpp/src/slice2js/Gen.h')
-rw-r--r-- | cpp/src/slice2js/Gen.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/slice2js/Gen.h b/cpp/src/slice2js/Gen.h index 566099347ff..bee09bdddfe 100644 --- a/cpp/src/slice2js/Gen.h +++ b/cpp/src/slice2js/Gen.h @@ -59,6 +59,7 @@ public: const std::vector<std::string>&, const std::string&, std::ostream&); + ~Gen(); void generate(const UnitPtr&); @@ -79,7 +80,7 @@ private: { public: - RequireVisitor(::IceUtilInternal::Output&, std::vector<std::string>, bool); + RequireVisitor(::IceUtilInternal::Output&, std::vector<std::string>, bool, bool); virtual bool visitClassDefStart(const ClassDefPtr&); virtual bool visitStructStart(const StructPtr&); @@ -94,6 +95,7 @@ private: private: bool _icejs; + bool _es6modules; bool _seenClass; bool _seenCompactId; bool _seenOperation; @@ -134,12 +136,13 @@ private: { public: - ExportVisitor(::IceUtilInternal::Output&, bool); + ExportVisitor(::IceUtilInternal::Output&, bool, bool); virtual bool visitModuleStart(const ModulePtr&); private: bool _icejs; + bool _es6modules; }; }; |