Skip to content

Commit

Permalink
indent
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Dec 20, 2024
1 parent 00e9db4 commit 3a1b7b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions packages/nitrogen/src/syntax/swift/SwiftCxxBridgedType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ case ${i}:
{ () -> ${swiftClosureType} in
let __sharedClosure = bridge.share_${bridge.specializationName}(${cppParameterName})
return { ${signature} in
__sharedClosure.pointee.call(${indent(paramsForward.join(', '), ' ')})
__sharedClosure.pointee.call(${indent(paramsForward.join(', '), ' ')})
}
}()`.trim()
} else {
Expand All @@ -543,7 +543,7 @@ case ${i}:
{ () -> ${swiftClosureType} in
let __sharedClosure = bridge.share_${bridge.specializationName}(${cppParameterName})
return { ${signature} in
let __result = __sharedClosure.pointee.call(${paramsForward.join(', ')})
let __result = __sharedClosure.pointee.call(${indent(paramsForward.join(', '), ' ')})
return ${indent(resultBridged.parseFromCppToSwift('__result', 'swift'), ' ')}
}
}()`.trim()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,12 @@ public class HybridTestObjectSwiftKotlinSpec_cxx {
let __sharedClosure = bridge.share_Func_void_std__vector_Powertrain_(callback)
return { (__array: [Powertrain]) -> Void in
__sharedClosure.pointee.call({ () -> bridge.std__vector_Powertrain_ in
var __vector = bridge.create_std__vector_Powertrain_(__array.count)
for __item in __array {
__vector.push_back(__item)
}
return __vector
}())
var __vector = bridge.create_std__vector_Powertrain_(__array.count)
for __item in __array {
__vector.push_back(__item)
}
return __vector
}())
}
}())
return bridge.create_Result_void_()
Expand Down Expand Up @@ -922,12 +922,12 @@ public class HybridTestObjectSwiftKotlinSpec_cxx {
let __sharedClosure = bridge.share_Func_void_std__optional_double_(callback)
return { (__maybe: Double?) -> Void in
__sharedClosure.pointee.call({ () -> bridge.std__optional_double_ in
if let __unwrappedValue = __maybe {
return bridge.create_std__optional_double_(__unwrappedValue)
} else {
return .init()
}
}())
if let __unwrappedValue = __maybe {
return bridge.create_std__optional_double_(__unwrappedValue)
} else {
return .init()
}
}())
}
}())
return bridge.create_Result_void_()
Expand Down

0 comments on commit 3a1b7b8

Please sign in to comment.