summaryrefslogtreecommitdiff
path: root/cpp/src/slice2swift/SwiftUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2swift/SwiftUtil.cpp')
-rw-r--r--cpp/src/slice2swift/SwiftUtil.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/slice2swift/SwiftUtil.cpp b/cpp/src/slice2swift/SwiftUtil.cpp
index 1fe9ccf7fe0..5c3bcac9013 100644
--- a/cpp/src/slice2swift/SwiftUtil.cpp
+++ b/cpp/src/slice2swift/SwiftUtil.cpp
@@ -62,11 +62,13 @@ replace(string s, string patt, string val)
return r;
}
+}
+
//
// Split a scoped name into its components and return the components as a list of (unscoped) identifiers.
//
-static StringList
-splitScopedName(const string& scoped)
+StringList
+Slice::splitScopedName(const string& scoped)
{
assert(scoped[0] == ':');
StringList ids;
@@ -97,8 +99,6 @@ splitScopedName(const string& scoped)
return ids;
}
-}
-
//
// Check the given identifier against Swift's list of reserved words. If it matches
// a reserved word, then an escaped version is returned with a leading underscore.