summaryrefslogtreecommitdiff
path: root/cpp/src/slice2js/Gen.h
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-09-17 17:00:21 +0200
committerJose <jose@zeroc.com>2014-09-17 17:00:21 +0200
commit9ae2025642ba897836184b4658d0dc48aae3ad29 (patch)
tree3e44af41096906007793ed2bcb41266e0b4ecc2d /cpp/src/slice2js/Gen.h
parentFixed ICE-5318: Review IceGrid timeout defaults (diff)
downloadice-9ae2025642ba897836184b4658d0dc48aae3ad29.tar.bz2
ice-9ae2025642ba897836184b4658d0dc48aae3ad29.tar.xz
ice-9ae2025642ba897836184b4658d0dc48aae3ad29.zip
JS modules fixes/simplifications
Diffstat (limited to 'cpp/src/slice2js/Gen.h')
-rw-r--r--cpp/src/slice2js/Gen.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/cpp/src/slice2js/Gen.h b/cpp/src/slice2js/Gen.h
index f74f5f9a653..539f52ece0b 100644
--- a/cpp/src/slice2js/Gen.h
+++ b/cpp/src/slice2js/Gen.h
@@ -53,7 +53,8 @@ public:
Gen(const std::string&,
const std::vector<std::string>&,
- const std::string&);
+ const std::string&,
+ bool);
~Gen();
void generate(const UnitPtr&);
@@ -65,6 +66,7 @@ private:
std::vector<std::string> _includePaths;
std::string _fileBase;
+ bool _icejs;
void printHeader();
@@ -86,7 +88,7 @@ private:
private:
- bool _allowIcePrefix;
+ bool _icejs;
bool _seenClass;
bool _seenCompactId;
bool _seenOperation;
@@ -103,7 +105,7 @@ private:
{
public:
- TypesVisitor(::IceUtilInternal::Output&, std::vector< std::string>);
+ TypesVisitor(::IceUtilInternal::Output&, std::vector< std::string>, bool);
virtual bool visitModuleStart(const ModulePtr&);
virtual void visitModuleEnd(const ModulePtr&);
@@ -120,15 +122,19 @@ private:
std::string encodeTypeForOperation(const TypePtr&);
std::vector<std::string> _seenModules;
+ bool _icejs;
};
class ExportVisitor : public JsVisitor
{
public:
- ExportVisitor(::IceUtilInternal::Output&);
+ ExportVisitor(::IceUtilInternal::Output&, bool);
virtual bool visitModuleStart(const ModulePtr&);
+ private:
+
+ bool _icejs;
};
};