···4747copyright ="""/*
4848This file is part of Darling.
49495050-Copyright (C) 2017 Lubos Dolezel
5050+Copyright (C) 2018 Lubos Dolezel
51515252Darling is free software: you can redistribute it and/or modify
5353it under the terms of the GNU General Public License as published by
+4-4
tools/stub-gen-objc
···2828 "This file is part of Darling.\n" +
2929 "\n" +
30303131- "Copyright (C) 2017 Lubos Dolezel\n" +
3131+ "Copyright (C) 2018 Lubos Dolezel\n" +
3232 "\n" +
33333434 "Darling is free software: you can redistribute it and/or modify\n" +
···90909191 output.removeSubrange(output.startIndex ..< space.upperBound)
92929393- var endOfSuperclass: String.CharacterView.Index!
9393+ var endOfSuperclass: String.Index!
9494 let nextNewline = output.range(of: "\n")
9595 let nextProtocolConformance = output.range(of: " <")
9696 if nextNewline != nil && nextProtocolConformance != nil {
···104104 }
105105 let superclass = output[output.startIndex ..< endOfSuperclass]
106106107107- classes.append((class: className, superclass: superclass))
107107+ classes.append((class: String(className), superclass: String(superclass)))
108108 }
109109}
110110// End ugly string parsing code
···119119mh += "#import <Foundation/Foundation.h>\n"
120120121121// Generate headers and sources for each class
122122-for var classEntry in classes {
122122+for classEntry in classes {
123123124124 mh += "#import <\(moduleName)/\(classEntry.class).h>\n"
125125