@@ -526,6 +526,18 @@ fileprivate func bjs_WithOptionalJSClass_intOrUndefined_get_extern(_ self: Int32
526526 return bjs_WithOptionalJSClass_intOrUndefined_get_extern ( self )
527527}
528528
529+ #if arch( wasm32 )
530+ @ _extern ( wasm , module : " TestModule " , name : " bjs_WithOptionalJSClass_childOrNull_get " )
531+ fileprivate func bjs_WithOptionalJSClass_childOrNull_get_extern ( _ self : Int32 ) -> Void
532+ #else
533+ fileprivate func bjs_WithOptionalJSClass_childOrNull_get_extern ( _ self : Int32 ) -> Void {
534+ fatalError ( " Only available on WebAssembly " )
535+ }
536+ #endif
537+ @ inline ( never ) fileprivate func bjs_WithOptionalJSClass_childOrNull_get ( _ self : Int32 ) -> Void {
538+ return bjs_WithOptionalJSClass_childOrNull_get_extern ( self )
539+ }
540+
529541#if arch( wasm32 )
530542@ _extern ( wasm , module : " TestModule " , name : " bjs_WithOptionalJSClass_stringOrNull_set " )
531543fileprivate func bjs_WithOptionalJSClass_stringOrNull_set_extern ( _ self : Int32 , _ newValueIsSome : Int32 , _ newValueBytes : Int32 , _ newValueLength : Int32 ) -> Void
@@ -622,6 +634,18 @@ fileprivate func bjs_WithOptionalJSClass_intOrUndefined_set_extern(_ self: Int32
622634 return bjs_WithOptionalJSClass_intOrUndefined_set_extern ( self , newValueIsSome , newValueValue )
623635}
624636
637+ #if arch( wasm32 )
638+ @ _extern ( wasm , module : " TestModule " , name : " bjs_WithOptionalJSClass_childOrNull_set " )
639+ fileprivate func bjs_WithOptionalJSClass_childOrNull_set_extern ( _ self : Int32 , _ newValueIsSome : Int32 , _ newValueValue : Int32 ) -> Void
640+ #else
641+ fileprivate func bjs_WithOptionalJSClass_childOrNull_set_extern( _ self : Int32 , _ newValueIsSome : Int32 , _ newValueValue : Int32 ) -> Void {
642+ fatalError ( " Only available on WebAssembly " )
643+ }
644+ #endif
645+ @ inline ( never ) fileprivate func bjs_WithOptionalJSClass_childOrNull_set ( _ self : Int32 , _ newValueIsSome : Int32 , _ newValueValue : Int32 ) -> Void {
646+ return bjs_WithOptionalJSClass_childOrNull_set_extern ( self , newValueIsSome , newValueValue )
647+ }
648+
625649#if arch( wasm32 )
626650@ _extern ( wasm , module : " TestModule " , name : " bjs_WithOptionalJSClass_roundTripStringOrNull " )
627651fileprivate func bjs_WithOptionalJSClass_roundTripStringOrNull_extern ( _ self : Int32 , _ valueIsSome : Int32 , _ valueBytes : Int32 , _ valueLength : Int32 ) -> Void
@@ -718,6 +742,18 @@ fileprivate func bjs_WithOptionalJSClass_roundTripIntOrUndefined_extern(_ self:
718742 return bjs_WithOptionalJSClass_roundTripIntOrUndefined_extern ( self , valueIsSome , valueValue )
719743}
720744
745+ #if arch( wasm32 )
746+ @ _extern ( wasm , module : " TestModule " , name : " bjs_WithOptionalJSClass_roundTripChildOrNull " )
747+ fileprivate func bjs_WithOptionalJSClass_roundTripChildOrNull_extern ( _ self : Int32 , _ valueIsSome : Int32 , _ valueValue : Int32 ) -> Void
748+ #else
749+ fileprivate func bjs_WithOptionalJSClass_roundTripChildOrNull_extern( _ self : Int32 , _ valueIsSome : Int32 , _ valueValue : Int32 ) -> Void {
750+ fatalError ( " Only available on WebAssembly " )
751+ }
752+ #endif
753+ @ inline ( never ) fileprivate func bjs_WithOptionalJSClass_roundTripChildOrNull ( _ self : Int32 , _ valueIsSome : Int32 , _ valueValue : Int32 ) -> Void {
754+ return bjs_WithOptionalJSClass_roundTripChildOrNull_extern ( self , valueIsSome , valueValue )
755+ }
756+
721757func _ $WithOptionalJSClass_init( _ valueOrNull : Optional < String > , _ valueOrUndefined : JSUndefinedOr < String > ) throws( JSException ) -> JSObject {
722758 let ret0 = valueOrNull . bridgeJSWithLoweredParameter { ( valueOrNullIsSome , valueOrNullBytes , valueOrNullLength ) in
723759 let ret1 = valueOrUndefined . bridgeJSWithLoweredParameter { ( valueOrUndefinedIsSome , valueOrUndefinedBytes , valueOrUndefinedLength ) in
@@ -805,6 +841,15 @@ func _$WithOptionalJSClass_intOrUndefined_get(_ self: JSObject) throws(JSExcepti
805841 return JSUndefinedOr < Int > . bridgeJSLiftReturnFromSideChannel ( )
806842}
807843
844+ func _ $WithOptionalJSClass_childOrNull_get( _ self : JSObject ) throws( JSException ) -> Optional < WithOptionalJSClass > {
845+ let selfValue = self . bridgeJSLowerParameter ( )
846+ bjs_WithOptionalJSClass_childOrNull_get ( selfValue )
847+ if let error = _swift_js_take_exception ( ) {
848+ throw error
849+ }
850+ return Optional < WithOptionalJSClass > . bridgeJSLiftReturn ( )
851+ }
852+
808853func _ $WithOptionalJSClass_stringOrNull_set( _ self : JSObject , _ newValue : Optional < String > ) throws( JSException ) -> Void {
809854 let selfValue = self . bridgeJSLowerParameter ( )
810855 newValue . bridgeJSWithLoweredParameter { ( newValueIsSome , newValueBytes , newValueLength ) in
@@ -879,6 +924,15 @@ func _$WithOptionalJSClass_intOrUndefined_set(_ self: JSObject, _ newValue: JSUn
879924 }
880925}
881926
927+ func _ $WithOptionalJSClass_childOrNull_set( _ self : JSObject , _ newValue : Optional < WithOptionalJSClass > ) throws( JSException ) -> Void {
928+ let selfValue = self . bridgeJSLowerParameter ( )
929+ let ( newValueIsSome , newValueValue ) = newValue . bridgeJSLowerParameter ( )
930+ bjs_WithOptionalJSClass_childOrNull_set ( selfValue , newValueIsSome , newValueValue )
931+ if let error = _swift_js_take_exception ( ) {
932+ throw error
933+ }
934+ }
935+
882936func _ $WithOptionalJSClass_roundTripStringOrNull( _ self : JSObject , _ value : Optional < String > ) throws( JSException ) -> Optional < String > {
883937 let selfValue = self . bridgeJSLowerParameter ( )
884938 value . bridgeJSWithLoweredParameter { ( valueIsSome , valueBytes , valueLength ) in
@@ -959,4 +1013,14 @@ func _$WithOptionalJSClass_roundTripIntOrUndefined(_ self: JSObject, _ value: JS
9591013 throw error
9601014 }
9611015 return JSUndefinedOr < Int > . bridgeJSLiftReturnFromSideChannel ( )
1016+ }
1017+
1018+ func _ $WithOptionalJSClass_roundTripChildOrNull( _ self : JSObject , _ value : Optional < WithOptionalJSClass > ) throws( JSException ) -> Optional < WithOptionalJSClass > {
1019+ let selfValue = self . bridgeJSLowerParameter ( )
1020+ let ( valueIsSome , valueValue ) = value . bridgeJSLowerParameter ( )
1021+ bjs_WithOptionalJSClass_roundTripChildOrNull ( selfValue , valueIsSome , valueValue )
1022+ if let error = _swift_js_take_exception ( ) {
1023+ throw error
1024+ }
1025+ return Optional < WithOptionalJSClass > . bridgeJSLiftReturn ( )
9621026}
0 commit comments