@nstudio/nativescript-compiler 9.2.0-alpha.17 → 9.2.0-alpha.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/README.md +3 -0
  2. package/dist/kotlin/access.js +8 -7
  3. package/dist/kotlin/assignment.js +22 -13
  4. package/dist/kotlin/builtins.js +67 -0
  5. package/dist/kotlin/calls.js +3 -2
  6. package/dist/kotlin/class-declaration.js +4 -9
  7. package/dist/kotlin/class-methods.js +2 -2
  8. package/dist/kotlin/core-api.js +1 -1
  9. package/dist/kotlin/declarations.js +1 -1
  10. package/dist/kotlin/expression-statements.js +13 -1
  11. package/dist/kotlin/functions.js +1 -0
  12. package/dist/kotlin/literals.js +4 -8
  13. package/dist/kotlin/names.js +4 -4
  14. package/dist/kotlin/native/api.js +1 -1
  15. package/dist/kotlin/operators.js +25 -25
  16. package/dist/kotlin/optional-chains.js +1 -1
  17. package/dist/kotlin/overrides.js +2 -2
  18. package/dist/kotlin/state-backend.js +6 -2
  19. package/dist/kotlin/translator.js +1 -1
  20. package/dist/kotlin/types.js +4 -4
  21. package/dist/semantics/classes.js +15 -0
  22. package/dist/semantics/facts.js +1 -1
  23. package/dist/semantics/lang.js +10 -0
  24. package/dist/semantics/lower.js +54 -0
  25. package/dist/semantics/lowering-methods.js +5 -0
  26. package/dist/semantics/placement.js +9 -3
  27. package/dist/semantics/signals.js +11 -0
  28. package/dist/semantics/states/missing.js +7 -0
  29. package/dist/semantics/tdz.js +54 -15
  30. package/dist/semantics/throws.js +1 -1
  31. package/dist/semantics/translator-methods.js +1 -1
  32. package/dist/swift/access.js +7 -9
  33. package/dist/swift/assignment.js +20 -14
  34. package/dist/swift/calls.js +6 -3
  35. package/dist/swift/classes.js +7 -9
  36. package/dist/swift/components.js +3 -3
  37. package/dist/swift/control-flow.js +1 -1
  38. package/dist/swift/conversion.js +5 -2
  39. package/dist/swift/core-api.js +2 -2
  40. package/dist/swift/declarations.js +1 -1
  41. package/dist/swift/expressions.js +6 -2
  42. package/dist/swift/from-any.js +1 -1
  43. package/dist/swift/functions.js +5 -6
  44. package/dist/swift/global-calls.js +1 -1
  45. package/dist/swift/lenient.js +1 -6
  46. package/dist/swift/literals.js +8 -3
  47. package/dist/swift/modules.js +3 -3
  48. package/dist/swift/names.js +3 -3
  49. package/dist/swift/native/calls.js +1 -1
  50. package/dist/swift/object-classes.js +84 -1
  51. package/dist/swift/operators.js +31 -29
  52. package/dist/swift/placement.js +4 -3
  53. package/dist/swift/state-backend.js +3 -2
  54. package/dist/swift/static-calls.js +2 -3
  55. package/dist/swift/syntax.js +9 -5
  56. package/dist/swift/translator.js +1 -1
  57. package/dist/swift/type-facts.js +3 -3
  58. package/dist/swift/types.js +3 -3
  59. package/dist/targets/ios/build.js +1 -1
  60. package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +1 -0
  61. package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +525 -99
  62. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +2 -2
  63. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +29 -6
  64. package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +14 -0
  65. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +3 -3
  66. package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +49 -1
  67. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +0 -8
  68. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +0 -16
  69. package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +6 -4
  70. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +19 -7
  71. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +14 -0
  72. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +19 -10
  73. package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +17 -29
  74. package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +144 -22
  75. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +8 -3
  76. package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +2 -10
  77. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +0 -2
  78. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +6 -10
  79. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +531 -8
  80. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +0 -9
  81. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +3 -3
  82. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +19 -0
  83. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +5 -2
  84. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +232 -174
  85. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +1 -1
  86. package/kit-android/generated/kotlin/org/nativescript/kit/utils_android_runtime_version.kt +75 -0
  87. package/kit-android/generated/manifest.json +21 -18
  88. package/kit-android/generated/source-lines.json +1 -1
  89. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +497 -42
  90. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +1 -1
  91. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +22 -2
  92. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
  93. package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +1 -1
  94. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +14 -10
  95. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +3 -9
  96. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +20 -21
  97. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +5 -7
  98. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_.swift +130 -0
  99. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +2 -4
  100. package/kit-apple/Sources/NativeScriptKit/Core/Object_specified_substituted_reads.swift +115 -0
  101. package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads.swift +113 -0
  102. package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads_.swift +113 -0
  103. package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +348 -330
  104. package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +358 -359
  105. package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +47 -29
  106. package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +3 -1
  107. package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +95 -53
  108. package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1 -1
  109. package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +1 -1
  110. package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +2 -2
  111. package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +52 -43
  112. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +18 -0
  113. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +66 -51
  114. package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +67 -51
  115. package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +143 -32
  116. package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +30 -19
  117. package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +190 -78
  118. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +1 -1
  119. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +205 -201
  120. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +41 -42
  121. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +1 -1
  122. package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +2 -2
  123. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +77 -65
  124. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +4 -4
  125. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1272 -824
  126. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +2 -2
  127. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +8 -8
  128. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
  129. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +2 -1
  130. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +6 -6
  131. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +22 -21
  132. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +202 -188
  133. package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
  134. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +3 -3
  135. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2 -2
  136. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +1 -1
  137. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +1 -1
  138. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +2 -2
  139. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +2 -2
  140. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +869 -838
  141. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +46 -31
  142. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +1 -2
  143. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +1 -1
  144. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +2 -2
  145. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +4 -4
  146. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +2 -2
  147. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +17 -17
  148. package/kit-apple/Sources/NativeScriptKit/Core/utils.android-runtime-version.swift +77 -0
  149. package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +2 -2
  150. package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +62 -61
  151. package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +4 -0
  152. package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +2 -0
  153. package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +1 -1
  154. package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +1 -1
  155. package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +1 -1
  156. package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +280 -9
  157. package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
  158. package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +1 -0
  159. package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +1 -0
  160. package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +1 -0
  161. package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +2 -0
  162. package/package.json +2 -2
@@ -902,13 +902,13 @@ open class ViewBase: Observable, JSStringConvertible {
902
902
  /// Returns the child view with the specified id.
903
903
  open func getViewById(_ id: String) throws -> Any? {
904
904
  #sourceLocation(file:"@nativescript/core/ui.core.view-base.index.ts",line:696)
905
- return try jsImplicit(Core_ui_core_view_base_index.getViewById(self, id))
905
+ return try (Core_ui_core_view_base_index.getViewById(self, id) as Any?)
906
906
  }
907
907
  #sourceLocation()
908
908
  /// Returns the child view with the specified domId.
909
909
  open func getViewByDomId(_ domId: Double) throws -> Any? {
910
910
  #sourceLocation(file:"@nativescript/core/ui.core.view-base.index.ts",line:703)
911
- return try jsImplicit(Core_ui_core_view_base_index.getViewByDomId(self, domId))
911
+ return try (Core_ui_core_view_base_index.getViewByDomId(self, domId) as Any?)
912
912
  }
913
913
  #sourceLocation()
914
914
  /// @unstable
@@ -2937,8 +2937,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
2937
2937
  )? {
2938
2938
  if jsOffScriptThread() { return jsAwait { self.animationController(forDismissed: dismissed) } }
2939
2939
  return jsOnMainThread(dismissed) { (dismissed) -> (any UIViewControllerAnimatedTransitioning)? in
2940
- let __result: any UIViewControllerAnimatedTransitioning? = jsReportedOrZero {
2941
- () throws -> any UIViewControllerAnimatedTransitioning? in
2940
+ let __result: (any UIViewControllerAnimatedTransitioning)? = jsReportedOrZero {
2941
+ () throws -> (any UIViewControllerAnimatedTransitioning)? in
2942
2942
  #sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1245)
2943
2943
  let owner: NativeScriptKit.ModalTransition? =
2944
2944
  (self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
@@ -2963,8 +2963,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
2963
2963
  }
2964
2964
  return jsOnMainThread(presented, presenting, source) {
2965
2965
  (presented, presenting, source) -> (any UIViewControllerAnimatedTransitioning)? in
2966
- let __result: any UIViewControllerAnimatedTransitioning? = jsReportedOrZero {
2967
- () throws -> any UIViewControllerAnimatedTransitioning? in
2966
+ let __result: (any UIViewControllerAnimatedTransitioning)? = jsReportedOrZero {
2967
+ () throws -> (any UIViewControllerAnimatedTransitioning)? in
2968
2968
  #sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1253)
2969
2969
  let owner: NativeScriptKit.ModalTransition? =
2970
2970
  (self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
@@ -2986,8 +2986,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
2986
2986
  {
2987
2987
  if jsOffScriptThread() { return jsAwait { self.interactionControllerForDismissal(using: animator) } }
2988
2988
  return jsOnMainThread(animator) { (animator) -> (any UIViewControllerInteractiveTransitioning)? in
2989
- let __result: any UIViewControllerInteractiveTransitioning? = jsReportedOrZero {
2990
- () throws -> any UIViewControllerInteractiveTransitioning? in
2989
+ let __result: (any UIViewControllerInteractiveTransitioning)? = jsReportedOrZero {
2990
+ () throws -> (any UIViewControllerInteractiveTransitioning)? in
2991
2991
  #sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1261)
2992
2992
  let owner: NativeScriptKit.ModalTransition? =
2993
2993
  (self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
@@ -3014,8 +3014,8 @@ public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewCo
3014
3014
  ) -> (any UIViewControllerInteractiveTransitioning)? {
3015
3015
  if jsOffScriptThread() { return jsAwait { self.interactionControllerForPresentation(using: animator) } }
3016
3016
  return jsOnMainThread(animator) { (animator) -> (any UIViewControllerInteractiveTransitioning)? in
3017
- let __result: any UIViewControllerInteractiveTransitioning? = jsReportedOrZero {
3018
- () throws -> any UIViewControllerInteractiveTransitioning? in
3017
+ let __result: (any UIViewControllerInteractiveTransitioning)? = jsReportedOrZero {
3018
+ () throws -> (any UIViewControllerInteractiveTransitioning)? in
3019
3019
  #sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1272)
3020
3020
  let owner: NativeScriptKit.ModalTransition? =
3021
3021
  (self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
@@ -1826,7 +1826,7 @@ open class ViewCommon: ViewBase {
1826
1826
  #sourceLocation(file:"@nativescript/core/ui.core.view.view-common.ts",line:462)
1827
1827
  if try jsUnwrap(args, "length").length == 2 {
1828
1828
  #sourceLocation(file:"@nativescript/core/ui.core.view.view-common.ts",line:463)
1829
- options = try (jsUnwrap(args, "1").element(1) ?? nil)
1829
+ options = try ((jsUnwrap(args, "1").element(1) ?? nil) as Any?)
1830
1830
  } else {
1831
1831
  #sourceLocation(file:"@nativescript/core/ui.core.view.view-common.ts",line:465)
1832
1832
  if try ((jsUnwrap(args, "0").element(0) ?? nil) is ViewCommon) {
@@ -913,7 +913,8 @@ open class FrameBase: CustomLayoutView {
913
913
  #sourceLocation(file:"@nativescript/core/ui.frame.frame-common.ts",line:672)
914
914
  while i >= 0 {
915
915
  #sourceLocation(file:"@nativescript/core/ui.frame.frame-common.ts",line:673)
916
- let backstackEntry: Any? = try (jsUnwrap(self.backStack, "i--").element(jsPostDecrement(&i)) ?? nil)
916
+ let backstackEntry: Any? =
917
+ try ((jsUnwrap(self.backStack, "i--").element(jsPostDecrement(&i)) ?? nil) as Any?)
917
918
  #sourceLocation(file:"@nativescript/core/ui.frame.frame-common.ts",line:674)
918
919
  try jsLog("\t\(jsToStringThrowing(jsGet(backstackEntry, "resolvedPage")))")
919
920
  }
@@ -830,8 +830,8 @@ open class Frame: FrameBase {
830
830
  let navigationController: NativeScriptKit.UINavigationControllerImpl? =
831
831
  navigationController as? NativeScriptKit.UINavigationControllerImpl
832
832
  let operation: Double = Double(operation.rawValue)
833
- let __result: any UIViewControllerAnimatedTransitioning? = jsReportedOrZero {
834
- () throws -> any UIViewControllerAnimatedTransitioning? in
833
+ let __result: (any UIViewControllerAnimatedTransitioning)? = jsReportedOrZero {
834
+ () throws -> (any UIViewControllerAnimatedTransitioning)? in
835
835
  #sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:475)
836
836
  var viewController: UIViewController?
837
837
  #sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:476)
@@ -919,7 +919,7 @@ open class Frame: FrameBase {
919
919
  return try jsCallMethod(
920
920
  __o_2, "iosNavigatedController", (navigationController as Any?), operation, fromVC, toVC
921
921
  )
922
- }()) as? any UIViewControllerAnimatedTransitioning)
922
+ }()) as? (any UIViewControllerAnimatedTransitioning))
923
923
  }
924
924
  #sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:526)
925
925
  return nil
@@ -941,8 +941,8 @@ open class Frame: FrameBase {
941
941
  (navigationController, animationController) -> (any UIViewControllerInteractiveTransitioning)? in
942
942
  let navigationController: NativeScriptKit.UINavigationControllerImpl? =
943
943
  navigationController as? NativeScriptKit.UINavigationControllerImpl
944
- let __result: any UIViewControllerInteractiveTransitioning? = jsReportedOrZero {
945
- () throws -> any UIViewControllerInteractiveTransitioning? in
944
+ let __result: (any UIViewControllerInteractiveTransitioning)? = jsReportedOrZero {
945
+ () throws -> (any UIViewControllerInteractiveTransitioning)? in
946
946
  #sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:530)
947
947
  let owner: NativeScriptKit.Frame? = try jsUnwrap(navigationController, "owner").owner
948
948
  #sourceLocation(file:"@nativescript/core/ui.frame.index.ios.ts",line:531)
@@ -966,7 +966,7 @@ open class Frame: FrameBase {
966
966
  as Any?)
967
967
  return try jsIsNullish(__o_3)
968
968
  ? nil : try jsCallMethod(__o_3, "iosInteractionDismiss", jsNull)
969
- }()) as? any UIViewControllerInteractiveTransitioning)
969
+ }()) as? (any UIViewControllerInteractiveTransitioning))
970
970
  }
971
971
  }
972
972
  }
@@ -1882,7 +1882,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
1882
1882
  childState, Core_ui_layouts_flexbox_layout_index.MEASURED_STATE_TOO_SMALL)
1883
1883
  } else {
1884
1884
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:892)
1885
- widthSize = jsLenientNumber(calculatedMaxWidth)
1885
+ widthSize = try jsConvertedNumber(calculatedMaxWidth)
1886
1886
  }
1887
1887
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:894)
1888
1888
  widthSizeAndState = View.resolveSizeAndState(widthSize, widthSize, widthMode, childState)
@@ -1891,7 +1891,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
1891
1891
  case _ where __switch8 == (Core_ui_layouts_flexbox_layout_index.UNSPECIFIED):
1892
1892
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:898)
1893
1893
  widthSizeAndState = View.resolveSizeAndState(
1894
- jsLenientNumber(calculatedMaxWidth), widthSize, widthMode, childState)
1894
+ try jsConvertedNumber(calculatedMaxWidth), widthSize, widthMode, childState)
1895
1895
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:899)
1896
1896
  break
1897
1897
  default:
@@ -1926,7 +1926,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
1926
1926
  NativeScriptKit.layout.MEASURED_HEIGHT_STATE_SHIFT))
1927
1927
  } else {
1928
1928
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:916)
1929
- heightSize = jsLenientNumber(calculatedMaxHeight)
1929
+ heightSize = try jsConvertedNumber(calculatedMaxHeight)
1930
1930
  }
1931
1931
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:919)
1932
1932
  heightSizeAndState = View.resolveSizeAndState(heightSize, heightSize, heightMode, childState)
@@ -1935,7 +1935,7 @@ open class FlexboxLayout: FlexboxLayoutBase {
1935
1935
  case _ where __switch9 == (Core_ui_layouts_flexbox_layout_index.UNSPECIFIED):
1936
1936
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:923)
1937
1937
  heightSizeAndState = View.resolveSizeAndState(
1938
- jsLenientNumber(calculatedMaxHeight), heightSize, heightMode, childState)
1938
+ try jsConvertedNumber(calculatedMaxHeight), heightSize, heightMode, childState)
1939
1939
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:924)
1940
1940
  break
1941
1941
  default:
@@ -1943,7 +1943,8 @@ open class FlexboxLayout: FlexboxLayoutBase {
1943
1943
  throw JSException(value: JSError("Unknown height mode is set: " + js(heightMode)))
1944
1944
  }
1945
1945
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:929)
1946
- try self.setMeasuredDimension(jsLenientNumber(widthSizeAndState), jsLenientNumber(heightSizeAndState))
1946
+ try self.setMeasuredDimension(
1947
+ try jsConvertedNumber(widthSizeAndState), try jsConvertedNumber(heightSizeAndState))
1947
1948
  }
1948
1949
  #sourceLocation()
1949
1950
  open func _isWrapRequired(
@@ -2216,17 +2217,17 @@ open class FlexboxLayout: FlexboxLayoutBase {
2216
2217
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1094)
2217
2218
  try self._layoutSingleChildHorizontal(
2218
2219
  child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
2219
- jsRound(jsLenientNumber(childRight))
2220
+ jsRound(try jsConvertedNumber(childRight))
2220
2221
  - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2221
2222
  childBottom - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
2222
- jsRound(jsLenientNumber(childRight)), childBottom)
2223
+ jsRound(try jsConvertedNumber(childRight)), childBottom)
2223
2224
  } else {
2224
2225
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1096)
2225
2226
  try self._layoutSingleChildHorizontal(
2226
2227
  child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
2227
- jsRound(jsLenientNumber(childLeft)),
2228
+ jsRound(try jsConvertedNumber(childLeft)),
2228
2229
  childBottom - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
2229
- jsRound(jsLenientNumber(childLeft))
2230
+ jsRound(try jsConvertedNumber(childLeft))
2230
2231
  + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(), childBottom)
2231
2232
  }
2232
2233
  } else {
@@ -2235,16 +2236,16 @@ open class FlexboxLayout: FlexboxLayoutBase {
2235
2236
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1100)
2236
2237
  try self._layoutSingleChildHorizontal(
2237
2238
  child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
2238
- jsRound(jsLenientNumber(childRight))
2239
+ jsRound(try jsConvertedNumber(childRight))
2239
2240
  - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(), childTop,
2240
- jsRound(jsLenientNumber(childRight)),
2241
+ jsRound(try jsConvertedNumber(childRight)),
2241
2242
  childTop + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
2242
2243
  } else {
2243
2244
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1102)
2244
2245
  try self._layoutSingleChildHorizontal(
2245
2246
  child, jsImplicit(flexLine), self.flexWrap, self.alignItems,
2246
- jsRound(jsLenientNumber(childLeft)), childTop,
2247
- jsRound(jsLenientNumber(childLeft))
2247
+ jsRound(try jsConvertedNumber(childLeft)), childTop,
2248
+ jsRound(try jsConvertedNumber(childLeft))
2248
2249
  + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2249
2250
  childTop + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
2250
2251
  }
@@ -2550,16 +2551,16 @@ open class FlexboxLayout: FlexboxLayoutBase {
2550
2551
  try self._layoutSingleChildVertical(
2551
2552
  child, jsImplicit(flexLine), true, self.alignItems,
2552
2553
  childRight - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2553
- jsRound(jsLenientNumber(childBottom))
2554
+ jsRound(try jsConvertedNumber(childBottom))
2554
2555
  - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(), childRight,
2555
- jsRound(jsLenientNumber(childBottom)))
2556
+ jsRound(try jsConvertedNumber(childBottom)))
2556
2557
  } else {
2557
2558
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1252)
2558
2559
  try self._layoutSingleChildVertical(
2559
2560
  child, jsImplicit(flexLine), true, self.alignItems,
2560
2561
  childRight - jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2561
- jsRound(jsLenientNumber(childTop)), childRight,
2562
- jsRound(jsLenientNumber(childTop))
2562
+ jsRound(try jsConvertedNumber(childTop)), childRight,
2563
+ jsRound(try jsConvertedNumber(childTop))
2563
2564
  + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
2564
2565
  }
2565
2566
  } else {
@@ -2568,17 +2569,17 @@ open class FlexboxLayout: FlexboxLayoutBase {
2568
2569
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1256)
2569
2570
  try self._layoutSingleChildVertical(
2570
2571
  child, jsImplicit(flexLine), false, self.alignItems, childLeft,
2571
- jsRound(jsLenientNumber(childBottom))
2572
+ jsRound(try jsConvertedNumber(childBottom))
2572
2573
  - jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight(),
2573
2574
  childLeft + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2574
- jsRound(jsLenientNumber(childBottom)))
2575
+ jsRound(try jsConvertedNumber(childBottom)))
2575
2576
  } else {
2576
2577
  #sourceLocation(file:"@nativescript/core/ui.layouts.flexbox-layout.index.ios.ts",line:1258)
2577
2578
  try self._layoutSingleChildVertical(
2578
2579
  child, jsImplicit(flexLine), false, self.alignItems, childLeft,
2579
- jsRound(jsLenientNumber(childTop)),
2580
+ jsRound(try jsConvertedNumber(childTop)),
2580
2581
  childLeft + jsUnwrap(child, "getMeasuredWidth").getMeasuredWidth(),
2581
- jsRound(jsLenientNumber(childTop))
2582
+ jsRound(try jsConvertedNumber(childTop))
2582
2583
  + jsUnwrap(child, "getMeasuredHeight").getMeasuredHeight())
2583
2584
  }
2584
2585
  }