@@ -253,24 +253,24 @@ struct BridgeJSLink {
253253 private func renderSwiftClassWrappers( ) -> [ String ] {
254254 var wrapperLines : [ String ] = [ ]
255255 var modulesByName : [ String : [ ExportedClass ] ] = [ : ]
256-
256+
257257 // Group classes by their module name
258258 for skeleton in exportedSkeletons {
259259 if skeleton. classes. isEmpty { continue }
260-
260+
261261 if modulesByName [ skeleton. moduleName] == nil {
262262 modulesByName [ skeleton. moduleName] = [ ]
263263 }
264264 modulesByName [ skeleton. moduleName] ? . append ( contentsOf: skeleton. classes)
265265 }
266-
266+
267267 // Generate wrapper functions for each module
268268 for (moduleName, classes) in modulesByName {
269269 wrapperLines. append ( " // Wrapper functions for module: \( moduleName) " )
270270 wrapperLines. append ( " if (!importObject[ \" \( moduleName) \" ]) { " )
271271 wrapperLines. append ( " importObject[ \" \( moduleName) \" ] = {}; " )
272272 wrapperLines. append ( " } " )
273-
273+
274274 for klass in classes {
275275 let wrapperFunctionName = " bjs_ \( klass. name) _wrap "
276276 wrapperLines. append ( " importObject[ \" \( moduleName) \" ][ \" \( wrapperFunctionName) \" ] = function(pointer) { " )
@@ -279,7 +279,7 @@ struct BridgeJSLink {
279279 wrapperLines. append ( " }; " )
280280 }
281281 }
282-
282+
283283 return wrapperLines
284284 }
285285
@@ -770,7 +770,9 @@ struct BridgeJSLink {
770770
771771 init ( moduleName: String ) {
772772 self . moduleName = moduleName
773- importedLines. append ( " const \( moduleName) = importObject[ \" \( moduleName) \" ] = importObject[ \" \( moduleName) \" ] || {}; " )
773+ importedLines. append (
774+ " const \( moduleName) = importObject[ \" \( moduleName) \" ] = importObject[ \" \( moduleName) \" ] || {}; "
775+ )
774776 }
775777
776778 func assignToImportObject( name: String , function: [ String ] ) {
0 commit comments