@@ -2884,6 +2884,62 @@ public func _bjs_DataPoint_init(_ x: Float64, _ y: Float64, _ labelBytes: Int32,
28842884 #endif
28852885}
28862886
2887+ extension PublicPoint : _BridgedSwiftStruct {
2888+ @_spi ( BridgeJS) @_transparent public static func bridgeJSLiftParameter( ) -> PublicPoint {
2889+ let y = Int . bridgeJSLiftParameter ( )
2890+ let x = Int . bridgeJSLiftParameter ( )
2891+ return PublicPoint ( x: x, y: y)
2892+ }
2893+
2894+ @_spi ( BridgeJS) @_transparent public consuming func bridgeJSLowerReturn( ) {
2895+ self . x. bridgeJSLowerStackReturn ( )
2896+ self . y. bridgeJSLowerStackReturn ( )
2897+ }
2898+
2899+ public init ( unsafelyCopying jsObject: JSObject ) {
2900+ let __bjs_cleanupId = _bjs_struct_lower_PublicPoint ( jsObject. bridgeJSLowerParameter ( ) )
2901+ defer {
2902+ _swift_js_struct_cleanup ( __bjs_cleanupId)
2903+ }
2904+ self = Self . bridgeJSLiftParameter ( )
2905+ }
2906+
2907+ public func toJSObject( ) -> JSObject {
2908+ let __bjs_self = self
2909+ __bjs_self. bridgeJSLowerReturn ( )
2910+ return JSObject ( id: UInt32 ( bitPattern: _bjs_struct_lift_PublicPoint ( ) ) )
2911+ }
2912+ }
2913+
2914+ #if arch(wasm32)
2915+ @_extern ( wasm, module: " bjs " , name: " swift_js_struct_lower_PublicPoint " )
2916+ fileprivate func _bjs_struct_lower_PublicPoint( _ objectId: Int32 ) -> Int32
2917+ #else
2918+ fileprivate func _bjs_struct_lower_PublicPoint( _ objectId: Int32 ) -> Int32 {
2919+ fatalError ( " Only available on WebAssembly " )
2920+ }
2921+ #endif
2922+
2923+ #if arch(wasm32)
2924+ @_extern ( wasm, module: " bjs " , name: " swift_js_struct_lift_PublicPoint " )
2925+ fileprivate func _bjs_struct_lift_PublicPoint( ) -> Int32
2926+ #else
2927+ fileprivate func _bjs_struct_lift_PublicPoint( ) -> Int32 {
2928+ fatalError ( " Only available on WebAssembly " )
2929+ }
2930+ #endif
2931+
2932+ @_expose ( wasm, " bjs_PublicPoint_init " )
2933+ @_cdecl ( " bjs_PublicPoint_init " )
2934+ public func _bjs_PublicPoint_init( _ x: Int32 , _ y: Int32 ) -> Void {
2935+ #if arch(wasm32)
2936+ let ret = PublicPoint ( x: Int . bridgeJSLiftParameter ( x) , y: Int . bridgeJSLiftParameter ( y) )
2937+ return ret. bridgeJSLowerReturn ( )
2938+ #else
2939+ fatalError ( " Only available on WebAssembly " )
2940+ #endif
2941+ }
2942+
28872943extension Address : _BridgedSwiftStruct {
28882944 @_spi ( BridgeJS) @_transparent public static func bridgeJSLiftParameter( ) -> Address {
28892945 let zipCode = Optional< Int> . bridgeJSLiftParameter( )
@@ -5954,6 +6010,17 @@ public func _bjs_roundTripDataPoint() -> Void {
59546010 #endif
59556011}
59566012
6013+ @_expose ( wasm, " bjs_roundTripPublicPoint " )
6014+ @_cdecl ( " bjs_roundTripPublicPoint " )
6015+ public func _bjs_roundTripPublicPoint( ) -> Void {
6016+ #if arch(wasm32)
6017+ let ret = roundTripPublicPoint ( _: PublicPoint . bridgeJSLiftParameter ( ) )
6018+ return ret. bridgeJSLowerReturn ( )
6019+ #else
6020+ fatalError ( " Only available on WebAssembly " )
6021+ #endif
6022+ }
6023+
59576024@_expose ( wasm, " bjs_roundTripContact " )
59586025@_cdecl ( " bjs_roundTripContact " )
59596026public func _bjs_roundTripContact( ) -> Void {
0 commit comments