summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/SwiftUtil.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2019-03-12 21:38:49 -0400
committerJoe George <joe@zeroc.com>2019-03-12 21:39:33 -0400
commit7f73780f6342575d11c11ca2f36add45865df69c (patch)
tree1df4761140c6ff29fd91fe690682132d13d4d794 /cpp/src/slice2swift/SwiftUtil.cpp
parentAdd traceSlicing to InputStream (diff)
downloadice-7f73780f6342575d11c11ca2f36add45865df69c.tar.bz2
ice-7f73780f6342575d11c11ca2f36add45865df69c.tar.xz
ice-7f73780f6342575d11c11ca2f36add45865df69c.zip
Add sync proxy operations
Diffstat (limited to 'cpp/src/slice2swift/SwiftUtil.cpp')
-rw-r--r--cpp/src/slice2swift/SwiftUtil.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp
index 5de3229e663..bc5ed77ce3b 100644
--- a/cpp/src/slice2swift/SwiftUtil.cpp
+++ b/cpp/src/slice2swift/SwiftUtil.cpp
@@ -772,6 +772,22 @@ SwiftGenerator::writeMarshalUnmarshalCode(Output &out,
void
SwiftGenerator::writeMarshalUnmarshalCode(Output &out,
+ const ParamDeclPtr& param,
+ const ContainedPtr& topLevel,
+ bool insideStream,
+ bool declareParam,
+ bool marshal,
+ int tag)
+{
+ TypePtr type = param->type();
+ string typeStr = typeToString(type, topLevel, param->getMetaData(), param->optional());
+ string name = param->name();
+
+ writeMarshalUnmarshalCode(out, type, typeStr, name, insideStream, declareParam, marshal, tag);
+}
+
+void
+SwiftGenerator::writeMarshalUnmarshalCode(Output &out,
const TypePtr& type,
const string& typeStr,
const string& param,