diff --git a/Generator/Generator/MethodGen.swift b/Generator/Generator/MethodGen.swift index 2b3e67c52..063eed37c 100644 --- a/Generator/Generator/MethodGen.swift +++ b/Generator/Generator/MethodGen.swift @@ -179,11 +179,22 @@ struct MethodArgument { } self.name = godotArgumentToSwift(src.name) - + + // Splits a string that might contain '::' into either two, or a single element + func typeSplit (_ type: String) -> [String.SubSequence] { + if let r = type.range(of: "::") { + return [ + type[type.startIndex..