summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/Gen.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2019-04-05 17:06:45 -0400
committerJoe George <joe@zeroc.com>2019-04-05 17:06:45 -0400
commit7330b0e5c4906127a3e2835792dbe10edf39035a (patch)
tree3fb0983ce97246cdc907ae612277233b5d1e7c6c /cpp/src/slice2swift/Gen.cpp
parentMake LocalExceptions CustomStringConvertible (diff)
downloadice-7330b0e5c4906127a3e2835792dbe10edf39035a.tar.bz2
ice-7330b0e5c4906127a3e2835792dbe10edf39035a.tar.xz
ice-7330b0e5c4906127a3e2835792dbe10edf39035a.zip
Prefer open override to override open
Diffstat (limited to 'cpp/src/slice2swift/Gen.cpp')
-rw-r--r--cpp/src/slice2swift/Gen.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp
index 64f36904da5..c11e1cf55c1 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -408,7 +408,7 @@ Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
else
{
out << sp;
- out << nl << "override open func _iceWriteImpl(to ostr: "
+ out << nl << "open override func _iceWriteImpl(to ostr: "
<< getUnqualified("Ice.OutputStream", swiftModule) << ")";
out << sb;
out << nl << "ostr.startSlice(typeId: " << name << ".ice_staticId(), compactId: -1, last: "
@@ -425,7 +425,7 @@ Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
out << eb;
out << sp;
- out << nl << "override open func _iceReadImpl(from istr: "
+ out << nl << "open override func _iceReadImpl(from istr: "
<< getUnqualified("Ice.InputStream", swiftModule) << ") throws";
out << sb;
out << nl << "_ = try istr.startSlice()";
@@ -443,7 +443,7 @@ Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
if(p->usesClasses(false) && (!base || (base && !base->usesClasses(false))))
{
out << sp;
- out << nl << "override open func _usesClasses() -> Bool" << sb;
+ out << nl << "open override func _usesClasses() -> Bool" << sb;
out << nl << "return true";
out << eb;
}
@@ -451,13 +451,13 @@ Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
if(preserved && !basePreserved)
{
out << sp;
- out << nl << "override open func ice_getSlicedData() -> " << getUnqualified("Ice.SlicedData", swiftModule)
+ out << nl << "open override func ice_getSlicedData() -> " << getUnqualified("Ice.SlicedData", swiftModule)
<< "?" << sb;
out << nl << "return _slicedData";
out << eb;
out << sp;
- out << nl << "override open func _iceRead(from istr: " << getUnqualified("Ice.InputStream", swiftModule)
+ out << nl << "open override func _iceRead(from istr: " << getUnqualified("Ice.InputStream", swiftModule)
<< ") throws" << sb;
out << nl << "istr.startException()";
out << nl << "try _iceReadImpl(from: istr)";
@@ -465,7 +465,7 @@ Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
out << eb;
out << sp;
- out << nl << "override open func _iceWrite(to ostr: " << getUnqualified("Ice.OutputStream", swiftModule)
+ out << nl << "open override func _iceWrite(to ostr: " << getUnqualified("Ice.OutputStream", swiftModule)
<< ")" << sb;
out << nl << "ostr.startException(data: _slicedData)";
out << nl << "_iceWriteImpl(to: ostr)";
@@ -969,7 +969,7 @@ Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p)
out << nl << "public class " << prxI << ": " << getUnqualified("Ice._ObjectPrxI", swiftModule) << ", " << prx;
out << sb;
- out << nl << "override public class func ice_staticId() -> String";
+ out << nl << "public override class func ice_staticId() -> String";
out << sb;
out << nl << "return \"" << p->scoped() << "\"";
out << eb;
@@ -1152,17 +1152,17 @@ Gen::ValueVisitor::visitClassDefStart(const ClassDefPtr& p)
writeMemberwiseInitializer(out, members, baseMembers, allMembers, p, base == 0);
out << sp;
- out << nl << "override open func ice_id() -> Swift.String" << sb;
+ out << nl << "open override func ice_id() -> Swift.String" << sb;
out << nl << "return \"" << p->scoped() << "\"";
out << eb;
out << sp;
- out << nl << "override open class func ice_staticId() -> Swift.String" << sb;
+ out << nl << "open override class func ice_staticId() -> Swift.String" << sb;
out << nl << "return \"" << p->scoped() << "\"";
out << eb;
out << sp;
- out << nl << "override open func _iceReadImpl(from istr: "
+ out << nl << "open override func _iceReadImpl(from istr: "
<< getUnqualified("Ice.InputStream", swiftModule) << ") throws";
out << sb;
out << nl << "_ = try istr.startSlice()";
@@ -1186,7 +1186,7 @@ Gen::ValueVisitor::visitClassDefStart(const ClassDefPtr& p)
out << eb;
out << sp;
- out << nl << "override open func _iceWriteImpl(to ostr: "
+ out << nl << "open override func _iceWriteImpl(to ostr: "
<< getUnqualified("Ice.OutputStream", swiftModule) << ")";
out << sb;
out << nl << "ostr.startSlice(typeId: " << name << ".ice_staticId(), compactId: " << p->compactId() << ", last: "
@@ -1214,13 +1214,13 @@ Gen::ValueVisitor::visitClassDefStart(const ClassDefPtr& p)
if(preserved && !basePreserved)
{
out << sp;
- out << nl << "override open func ice_getSlicedData() -> " << getUnqualified("Ice.SlicedData?", swiftModule)
+ out << nl << "open override func ice_getSlicedData() -> " << getUnqualified("Ice.SlicedData?", swiftModule)
<< sb;
out << nl << "return _slicedData";
out << eb;
out << sp;
- out << nl << "override open func _iceRead(from istr: " << getUnqualified("Ice.InputStream", swiftModule)
+ out << nl << "open override func _iceRead(from istr: " << getUnqualified("Ice.InputStream", swiftModule)
<< ") throws" << sb;
out << nl << "istr.startValue()";
out << nl << "try _iceReadImpl(from: istr)";
@@ -1228,7 +1228,7 @@ Gen::ValueVisitor::visitClassDefStart(const ClassDefPtr& p)
out << eb;
out << sp;
- out << nl << "override open func _iceWrite(to ostr: " << getUnqualified("Ice.OutputStream", swiftModule)
+ out << nl << "open override func _iceWrite(to ostr: " << getUnqualified("Ice.OutputStream", swiftModule)
<< ")" << sb;
out << nl << "ostr.startValue(data: _slicedData)";
out << nl << "_iceWriteImpl(to: ostr)";