KeyPaths: Generate _kvcKeyPathString for ObjC-compatible keypaths.

This commit is contained in:
Joe Groff
2017-04-21 15:48:13 -07:00
parent 9222960df5
commit d5cdf658da
11 changed files with 311 additions and 20 deletions

View File

@@ -1782,7 +1782,12 @@ public:
*this << ' ';
}
*this << "(root $" << KPI->getPattern()->getRootType();
*this << "(";
if (!pattern->getObjCString().empty())
*this << "objc \"" << pattern->getObjCString() << "\"; ";
*this << "root $" << KPI->getPattern()->getRootType();
for (auto &component : pattern->getComponents()) {
*this << "; ";