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

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 (70) hide show
  1. package/config.js +1 -0
  2. package/dist/kotlin/arguments.js +6 -0
  3. package/dist/kotlin/overrides.js +1 -1
  4. package/dist/semantics/conversion.js +9 -1
  5. package/dist/semantics/runtime.js +1 -0
  6. package/dist/semantics/signals.js +1 -1
  7. package/dist/semantics/throws.js +1 -1
  8. package/dist/swift/arguments.js +14 -9
  9. package/dist/swift/assignment.js +6 -1
  10. package/dist/swift/calls.js +7 -2
  11. package/dist/swift/class-methods.js +2 -1
  12. package/dist/swift/library.js +2 -2
  13. package/dist/swift/method-values.js +2 -1
  14. package/dist/swift/names.js +4 -4
  15. package/dist/swift/native/calls.js +9 -3
  16. package/dist/swift/placement.js +18 -3
  17. package/dist/swift/static-calls.js +1 -1
  18. package/dist/swift/syntax.js +1 -1
  19. package/dist/swift/types.js +2 -2
  20. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +9 -0
  21. package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +6 -2
  22. package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +1 -1
  23. package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +7 -7
  24. package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
  25. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +1 -1
  26. package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
  27. package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +2 -2
  28. package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
  29. package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +2 -1
  30. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +33 -21
  31. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +12 -6
  32. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
  33. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +6 -2
  34. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
  35. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +8 -7
  36. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +79 -59
  37. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +17 -16
  38. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +2 -2
  39. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +27 -18
  40. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +9 -9
  41. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +6 -6
  42. package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +8 -8
  43. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +4 -3
  44. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +1 -1
  45. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +1 -1
  46. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +2 -2
  47. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +9 -9
  48. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +9 -6
  49. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +38 -20
  50. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +2 -2
  51. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
  52. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +18 -9
  53. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +28 -18
  54. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +19 -12
  55. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +14 -12
  56. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +14 -9
  57. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +12 -10
  58. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +36 -20
  59. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +2 -2
  60. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +25 -22
  61. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +2 -3
  62. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +21 -14
  63. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +33 -21
  64. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
  65. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +15 -15
  66. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +1 -1
  67. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +2 -2
  68. package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
  69. package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
  70. package/package.json +5 -3
@@ -32,7 +32,7 @@ public enum Http {
32
32
  #sourceLocation(file:"@nativescript/core/http.index.ts",line:11)
33
33
  let str: String = try jsLenientString(jsCallMethod(jsGet(r, "content"), "toString"))
34
34
  #sourceLocation(file:"@nativescript/core/http.index.ts",line:12)
35
- __resolvers1.resolve(str)
35
+ try __resolvers1.resolve(str)
36
36
  } catch {
37
37
  let e: Any? = jsCaught(error)
38
38
  #sourceLocation(file:"@nativescript/core/http.index.ts",line:14)
@@ -62,7 +62,7 @@ public enum Http {
62
62
  #sourceLocation(file:"@nativescript/core/http.index.ts",line:27)
63
63
  let json: Any? = try jsCallMethod(jsGet(r, "content"), "toJSON")
64
64
  #sourceLocation(file:"@nativescript/core/http.index.ts",line:28)
65
- __resolvers2.resolve(json)
65
+ try __resolvers2.resolve(json)
66
66
  } catch {
67
67
  let e: Any? = jsCaught(error)
68
68
  #sourceLocation(file:"@nativescript/core/http.index.ts",line:30)
@@ -127,7 +127,7 @@ public enum Http {
127
127
  let file: File? =
128
128
  try jsCallMethod(jsGet(r, "content"), "toFile", (destinationFilePath as Any?)) as? File
129
129
  #sourceLocation(file:"@nativescript/core/http.index.ts",line:61)
130
- __resolvers4.resolve(file)
130
+ try __resolvers4.resolve(file)
131
131
  } catch {
132
132
  let e: Any? = jsCaught(error)
133
133
  #sourceLocation(file:"@nativescript/core/http.index.ts",line:63)
@@ -688,7 +688,7 @@ open class ImageSource: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
688
688
  try
689
689
  ({ () throws -> Void in
690
690
  #sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:392)
691
- __resolvers7.resolve(isSuccess)
691
+ try __resolvers7.resolve(isSuccess)
692
692
  })()
693
693
  }
694
694
  })
@@ -783,7 +783,7 @@ open class ImageSource: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
783
783
  try
784
784
  ({ () throws -> Void in
785
785
  #sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:437)
786
- __resolvers8.resolve(try jsConvertedString(result))
786
+ try __resolvers8.resolve(try jsConvertedString(result))
787
787
  })()
788
788
  }
789
789
  })
@@ -711,14 +711,7 @@ open class EasySAXParser: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
711
711
  if self.is_onComment && !stop {
712
712
  #sourceLocation(file:"@nativescript/core/js-libs.easysax.easysax.ts",line:542)
713
713
  ok = try
714
- ({ () throws -> (String, ((Any?) throws -> String)?, (() throws -> Any?)?) throws -> Any in
715
- guard
716
- let __fn =
717
- try FunctionCell_String_AnyOpt_to_String_Opt_to_AnyOpt_Opt_to_AnyOpt.present(
718
- self.onComment)
719
- else { throw JSException(JSTypeError("this.onComment is not a function")) }
720
- return __fn
721
- }())(
714
+ (FunctionCell_String_AnyOpt_to_String_Opt_to_AnyOpt_Opt_to_AnyOpt.present(self.onComment))(
722
715
  jsSubstring(xml, i + 4, j),
723
716
  FunctionCell_AnyOpt_to_String.declared(
724
717
  "Core_js_libs_easysax_easysax.unEntities",
@@ -747,13 +740,7 @@ open class EasySAXParser: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
747
740
  if self.is_onAttention && !stop {
748
741
  #sourceLocation(file:"@nativescript/core/js-libs.easysax.easysax.ts",line:557)
749
742
  ok = try
750
- ({ () throws -> (String, ((Any?) throws -> String)?, (() throws -> Any?)?) throws -> Any in
751
- guard
752
- let __fn = try FunctionCell_String_AnyOpt_to_String_Opt_to_AnyOpt_Opt_to_AnyOpt.present(
753
- self.onAttention)
754
- else { throw JSException(JSTypeError("this.onAttention is not a function")) }
755
- return __fn
756
- }())(
743
+ (FunctionCell_String_AnyOpt_to_String_Opt_to_AnyOpt_Opt_to_AnyOpt.present(self.onAttention))(
757
744
  jsSubstring(xml, i, j + 1),
758
745
  FunctionCell_AnyOpt_to_String.declared(
759
746
  "Core_js_libs_easysax_easysax.unEntities",
@@ -783,13 +770,8 @@ open class EasySAXParser: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
783
770
  #sourceLocation(file:"@nativescript/core/js-libs.easysax.easysax.ts",line:572)
784
771
  if self.is_onQuestion {
785
772
  #sourceLocation(file:"@nativescript/core/js-libs.easysax.easysax.ts",line:573)
786
- ok = try
787
- ({ () throws -> (String, (() throws -> Any?)?) throws -> Any in
788
- guard
789
- let __fn = try FunctionCell_String_to_AnyOpt_Opt_to_AnyOpt.present(self.onQuestion)
790
- else { throw JSException(JSTypeError("this.onQuestion is not a function")) }
791
- return __fn
792
- }())(jsSubstring(xml, i, j + 2), position(i))
773
+ ok = try (FunctionCell_String_to_AnyOpt_Opt_to_AnyOpt.present(self.onQuestion))(
774
+ jsSubstring(xml, i, j + 2), position(i))
793
775
  #sourceLocation(file:"@nativescript/core/js-libs.easysax.easysax.ts",line:574)
794
776
  if jsStrictEquals(ok, false) {
795
777
  #sourceLocation(file:"@nativescript/core/js-libs.easysax.easysax.ts",line:574)
@@ -3471,7 +3471,7 @@
3471
3471
  "isCssVariable": [{"kind":"func","static":true,"type":"Bool","params":[{"label":"_","name":"property","type":"String"}]}],
3472
3472
  "isCssVariableExpression": [{"kind":"func","static":true,"type":"Bool","params":[{"label":"_","name":"value","type":"String"}]}],
3473
3473
  "keepLocalCssExpression": [{"kind":"func","static":true,"type":"Void","params":[{"label":"_","name":"style","type":"Style?"},{"label":"_","name":"cssName","type":"String"},{"label":"_","name":"specified","type":"Any?"},{"label":"_","name":"substituted","type":"Any?"},{"label":"_","name":"reads","type":"Any?"}],"throws":true}],
3474
- "localCssExpressionSetter": [{"kind":"func","static":true,"type":"Any?","params":[{"label":"_","name":"cssName","type":"String"},{"label":"_","name":"set","type":"Any?"}],"generics":"<T: Style>"}],
3474
+ "localCssExpressionSetter": [{"kind":"func","static":true,"type":"Any?","params":[{"label":"_","name":"cssName","type":"String"},{"label":"_","name":"set","type":"Any?"}]}],
3475
3475
  "print": [{"kind":"func","static":true,"type":"Void","params":[{"label":"_","name":"map","type":"Any?"}],"throws":true}],
3476
3476
  "propagateInheritableCssProperties": [{"kind":"func","static":true,"type":"Void","params":[{"label":"_","name":"parentStyle","type":"Style?"},{"label":"_","name":"childStyle","type":"Style?"}],"throws":true}],
3477
3477
  "propagateInheritableProperties": [{"kind":"func","static":true,"type":"Void","params":[{"label":"_","name":"view","type":"ViewBase?"},{"label":"_","name":"child","type":"ViewBase?"}],"throws":true}],
@@ -30500,6 +30500,7 @@
30500
30500
  "jsNativePropertyGet": [{"kind":"func","static":true,"type":"Any?","params":[{"label":"_","name":"native","type":"Any?"},{"label":"_","name":"getter","type":"String"},{"label":"fallback","name":"fallback","type":"Any?"}],"origin":"runtime"}],
30501
30501
  "jsNativePropertySet": [{"kind":"func","static":true,"type":"Void","params":[{"label":"_","name":"native","type":"Any?"},{"label":"_","name":"setter","type":"String"},{"label":"_","name":"value","type":"Any?"}],"origin":"runtime"}],
30502
30502
  "jsNativeResult": [{"kind":"func","static":true,"type":"Any?","params":[{"label":"_","name":"value","type":"Any?"}],"origin":"runtime"}, {"kind":"func","static":true,"type":"Any?","params":[{"label":"_","name":"value","type":"T"}],"origin":"runtime"}, {"kind":"func","static":true,"type":"Any?","params":[{"label":"_","name":"value","type":"T?"}],"origin":"runtime"}],
30503
+ "jsNativeSet": [{"kind":"func","static":true,"type":"Void","params":[{"label":"_","name":"object","type":"NSObject?"},{"label":"_","name":"key","type":"String"},{"label":"_","name":"value","type":"Any?"}],"origin":"runtime"}],
30503
30504
  "jsNativeString": [{"kind":"func","static":true,"type":"String?","params":[{"label":"_","name":"value","type":"Any?"}],"origin":"runtime"}],
30504
30505
  "jsNativeStruct": [{"kind":"func","static":true,"type":"T?","params":[{"label":"_","name":"value","type":"Any?"},{"label":"_","name":"_","type":"T.Type"}],"origin":"runtime"}],
30505
30506
  "jsNativeStructField": [{"kind":"func","static":true,"type":"Double","params":[{"label":"_","name":"value","type":"Any?"},{"label":"_","name":"key","type":"String"}],"origin":"runtime"}],
@@ -383,7 +383,8 @@ open class ActionBar: ActionBarBase {
383
383
  #sourceLocation()
384
384
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
385
385
  if key
386
- == ((Core_accessibility_accessibility_properties.accessibilityValueProperty?.setNative)?.key ?? "undefined")
386
+ == (try?
387
+ ((Core_accessibility_accessibility_properties.accessibilityValueProperty?.setNative)?.key ?? "undefined"))
387
388
  {
388
389
  return { __this, __a in
389
390
  try (jsCastPresent(__this) as ActionBar).symbol_setNative_accessibilityValue_ActionBar(
@@ -392,7 +393,8 @@ open class ActionBar: ActionBarBase {
392
393
  }
393
394
  }
394
395
  if key
395
- == ((Core_accessibility_accessibility_properties.accessibilityLabelProperty?.setNative)?.key ?? "undefined")
396
+ == (try?
397
+ ((Core_accessibility_accessibility_properties.accessibilityLabelProperty?.setNative)?.key ?? "undefined"))
396
398
  {
397
399
  return { __this, __a in
398
400
  try (jsCastPresent(__this) as ActionBar).symbol_setNative_accessibilityLabel_ActionBar(
@@ -401,7 +403,8 @@ open class ActionBar: ActionBarBase {
401
403
  }
402
404
  }
403
405
  if key
404
- == ((Core_accessibility_accessibility_properties.accessibilityHintProperty?.setNative)?.key ?? "undefined")
406
+ == (try?
407
+ ((Core_accessibility_accessibility_properties.accessibilityHintProperty?.setNative)?.key ?? "undefined"))
405
408
  {
406
409
  return { __this, __a in
407
410
  try (jsCastPresent(__this) as ActionBar).symbol_setNative_accessibilityHint_ActionBar(
@@ -410,8 +413,9 @@ open class ActionBar: ActionBarBase {
410
413
  }
411
414
  }
412
415
  if key
413
- == ((Core_accessibility_accessibility_properties.accessibilityLanguageProperty?.setNative)?.key
414
- ?? "undefined")
416
+ == (try?
417
+ ((Core_accessibility_accessibility_properties.accessibilityLanguageProperty?.setNative)?.key
418
+ ?? "undefined"))
415
419
  {
416
420
  return { __this, __a in
417
421
  try (jsCastPresent(__this) as ActionBar).symbol_setNative_accessibilityLanguage_ActionBar(
@@ -419,65 +423,72 @@ open class ActionBar: ActionBarBase {
419
423
  return nil
420
424
  }
421
425
  }
422
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
426
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
423
427
  return { __this, __a in return try (jsCastPresent(__this) as ActionBar).symbol_getDefault_color() }
424
428
  }
425
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
429
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
426
430
  return { __this, __a in
427
431
  try (jsCastPresent(__this) as ActionBar).symbol_setNative_color((try jsCast(jsArg(__a, 0), Color.self)))
428
432
  return nil
429
433
  }
430
434
  }
431
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined") {
435
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined")) {
432
436
  return { __this, __a in return try (jsCastPresent(__this) as ActionBar).symbol_getDefault_backgroundColor()
433
437
  }
434
438
  }
435
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined") {
439
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined")) {
436
440
  return { __this, __a in
437
441
  try (jsCastPresent(__this) as ActionBar).symbol_setNative_backgroundColor(jsArg(__a, 0))
438
442
  return nil
439
443
  }
440
444
  }
441
- if key == ((Core_ui_styling_style_properties.backgroundImageProperty?.getDefault)?.key ?? "undefined") {
445
+ if key == (try? ((Core_ui_styling_style_properties.backgroundImageProperty?.getDefault)?.key ?? "undefined")) {
442
446
  return { __this, __a in return try (jsCastPresent(__this) as ActionBar).symbol_getDefault_backgroundImage()
443
447
  }
444
448
  }
445
- if key == ((Core_ui_styling_style_properties.backgroundImageProperty?.setNative)?.key ?? "undefined") {
449
+ if key == (try? ((Core_ui_styling_style_properties.backgroundImageProperty?.setNative)?.key ?? "undefined")) {
446
450
  return { __this, __a in
447
451
  try (jsCastPresent(__this) as ActionBar).symbol_setNative_backgroundImage(jsArg(__a, 0))
448
452
  return nil
449
453
  }
450
454
  }
451
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined") {
455
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined"))
456
+ {
452
457
  return { __this, __a in
453
458
  return try (jsCastPresent(__this) as ActionBar).symbol_getDefault_backgroundInternal_ActionBar()
454
459
  }
455
460
  }
456
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined") {
461
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined"))
462
+ {
457
463
  return { __this, __a in
458
464
  try (jsCastPresent(__this) as ActionBar).symbol_setNative_backgroundInternal_ActionBar(nil)
459
465
  return nil
460
466
  }
461
467
  }
462
- if key == ((Core_ui_action_bar_action_bar_common.flatProperty?.setNative)?.key ?? "undefined") {
468
+ if key == (try? ((Core_ui_action_bar_action_bar_common.flatProperty?.setNative)?.key ?? "undefined")) {
463
469
  return { __this, __a in
464
470
  try (jsCastPresent(__this) as ActionBar).symbol_setNative_flat(false)
465
471
  return nil
466
472
  }
467
473
  }
468
- if key == ((Core_ui_action_bar_action_bar_common.iosIconRenderingModeProperty?.getDefault)?.key ?? "undefined")
474
+ if key
475
+ == (try?
476
+ ((Core_ui_action_bar_action_bar_common.iosIconRenderingModeProperty?.getDefault)?.key ?? "undefined"))
469
477
  {
470
478
  return { __this, __a in
471
479
  return try (jsCastPresent(__this) as ActionBar).symbol_getDefault_iosIconRenderingMode()
472
480
  }
473
481
  }
474
- if key == ((Core_ui_action_bar_action_bar_common.iosIconRenderingModeProperty?.setNative)?.key ?? "undefined") {
482
+ if key
483
+ == (try?
484
+ ((Core_ui_action_bar_action_bar_common.iosIconRenderingModeProperty?.setNative)?.key ?? "undefined"))
485
+ {
475
486
  return { __this, __a in
476
487
  try (jsCastPresent(__this) as ActionBar).symbol_setNative_iosIconRenderingMode("")
477
488
  return nil
478
489
  }
479
490
  }
480
- if key == ((Core_ui_action_bar_action_bar_common.iosLargeTitleProperty?.setNative)?.key ?? "undefined") {
491
+ if key == (try? ((Core_ui_action_bar_action_bar_common.iosLargeTitleProperty?.setNative)?.key ?? "undefined")) {
481
492
  return { __this, __a in
482
493
  try (jsCastPresent(__this) as ActionBar).symbol_setNative_iosLargeTitle(
483
494
  (try jsConvertedBool(jsArg(__a, 0))))
@@ -1427,12 +1438,13 @@ public enum Core_ui_action_bar_index {
1427
1438
  #sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:70)
1428
1439
  if try jsStrictEquals(jsGet(settings, "axisBehavior"), "horizontalOnly") {
1429
1440
  #sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:71)
1430
- try (jsUnwrap(placement, setting: "axisBehavior") as JSDynamic)[jsKey: "axisBehavior"] =
1431
- BarButtonItemAxisBehavior.HorizontalOnly
1441
+ try jsNativeSet(
1442
+ jsUnwrap(placement, setting: "axisBehavior"), "axisBehavior", BarButtonItemAxisBehavior.HorizontalOnly)
1432
1443
  } else if try jsStrictEquals(jsGet(settings, "axisBehavior"), "verticalPreferred") {
1433
1444
  #sourceLocation(file:"@nativescript/core/ui.action-bar.index.ios.ts",line:73)
1434
- try (jsUnwrap(placement, setting: "axisBehavior") as JSDynamic)[jsKey: "axisBehavior"] =
1435
- BarButtonItemAxisBehavior.VerticalPreferred
1445
+ try jsNativeSet(
1446
+ jsUnwrap(placement, setting: "axisBehavior"), "axisBehavior",
1447
+ BarButtonItemAxisBehavior.VerticalPreferred)
1436
1448
  }
1437
1449
  }
1438
1450
  }
@@ -66,29 +66,35 @@ open class ActivityIndicator: ActivityIndicatorBase {
66
66
  }
67
67
  #sourceLocation()
68
68
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
69
- if key == ((Core_ui_activity_indicator_activity_indicator_common.busyProperty?.getDefault)?.key ?? "undefined")
69
+ if key
70
+ == (try?
71
+ ((Core_ui_activity_indicator_activity_indicator_common.busyProperty?.getDefault)?.key ?? "undefined"))
70
72
  {
71
73
  return { __this, __a in return try (jsCastPresent(__this) as ActivityIndicator).symbol_getDefault_busy() }
72
74
  }
73
- if key == ((Core_ui_activity_indicator_activity_indicator_common.busyProperty?.setNative)?.key ?? "undefined") {
75
+ if key
76
+ == (try?
77
+ ((Core_ui_activity_indicator_activity_indicator_common.busyProperty?.setNative)?.key ?? "undefined"))
78
+ {
74
79
  return { __this, __a in
75
80
  try (jsCastPresent(__this) as ActivityIndicator).symbol_setNative_busy(
76
81
  (try jsConvertedBool(jsArg(__a, 0))))
77
82
  return nil
78
83
  }
79
84
  }
80
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
85
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
81
86
  return { __this, __a in return try (jsCastPresent(__this) as ActivityIndicator).symbol_getDefault_color() }
82
87
  }
83
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
88
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
84
89
  return { __this, __a in
85
90
  try (jsCastPresent(__this) as ActivityIndicator).symbol_setNative_color(jsArg(__a, 0))
86
91
  return nil
87
92
  }
88
93
  }
89
94
  if key
90
- == ((Core_ui_activity_indicator_activity_indicator_common.iosIndicatorViewStyleProperty?.setNative)?.key
91
- ?? "undefined")
95
+ == (try?
96
+ ((Core_ui_activity_indicator_activity_indicator_common.iosIndicatorViewStyleProperty?.setNative)?.key
97
+ ?? "undefined"))
92
98
  {
93
99
  return { __this, __a in
94
100
  try (jsCastPresent(__this) as ActivityIndicator).symbol_setNative_iosIndicatorViewStyle(
@@ -634,7 +634,7 @@ open class KeyframeAnimation: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
634
634
  return JSPromise<Void> { (__resolvers1: JSResolvers<Void>) throws -> Void in
635
635
 
636
636
  #sourceLocation(file:"@nativescript/core/ui.animation.keyframe-animation.ts",line:212)
637
- __resolvers1.resolve()
637
+ try __resolvers1.resolve()
638
638
  }
639
639
  }
640
640
  #sourceLocation(file:"@nativescript/core/ui.animation.keyframe-animation.ts",line:216)
@@ -1658,8 +1658,12 @@ public enum Core_ui_builder_index {
1658
1658
  jsAwait(
1659
1659
  value: try jsObjectRequired(Builder.load(pathOrOptions, context)),
1660
1660
  { (__t_1: View) -> Void in
1661
- __async1.returnValue(jsObjectRequired(__t_1))
1662
- }, { __async1.throwValue($0) })
1661
+ do {
1662
+ __async1.returnValue(try jsObjectRequired(__t_1))
1663
+ } catch {
1664
+ __async1.throwValue(jsCaught(error))
1665
+ }
1666
+ }, __async1.throwValue)
1663
1667
  }
1664
1668
  return __async1.promise
1665
1669
  }
@@ -206,68 +206,69 @@ open class Button: ButtonBase {
206
206
  }
207
207
  #sourceLocation()
208
208
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
209
- if key == ((Core_ui_styling_style_properties.borderTopWidthProperty?.getDefault)?.key ?? "undefined") {
209
+ if key == (try? ((Core_ui_styling_style_properties.borderTopWidthProperty?.getDefault)?.key ?? "undefined")) {
210
210
  return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderTopWidth() }
211
211
  }
212
- if key == ((Core_ui_styling_style_properties.borderTopWidthProperty?.setNative)?.key ?? "undefined") {
212
+ if key == (try? ((Core_ui_styling_style_properties.borderTopWidthProperty?.setNative)?.key ?? "undefined")) {
213
213
  return { __this, __a in
214
214
  try (jsCastPresent(__this) as Button).symbol_setNative_borderTopWidth(nil)
215
215
  return nil
216
216
  }
217
217
  }
218
- if key == ((Core_ui_styling_style_properties.borderRightWidthProperty?.getDefault)?.key ?? "undefined") {
218
+ if key == (try? ((Core_ui_styling_style_properties.borderRightWidthProperty?.getDefault)?.key ?? "undefined")) {
219
219
  return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderRightWidth() }
220
220
  }
221
- if key == ((Core_ui_styling_style_properties.borderRightWidthProperty?.setNative)?.key ?? "undefined") {
221
+ if key == (try? ((Core_ui_styling_style_properties.borderRightWidthProperty?.setNative)?.key ?? "undefined")) {
222
222
  return { __this, __a in
223
223
  try (jsCastPresent(__this) as Button).symbol_setNative_borderRightWidth(nil)
224
224
  return nil
225
225
  }
226
226
  }
227
- if key == ((Core_ui_styling_style_properties.borderBottomWidthProperty?.getDefault)?.key ?? "undefined") {
227
+ if key == (try? ((Core_ui_styling_style_properties.borderBottomWidthProperty?.getDefault)?.key ?? "undefined"))
228
+ {
228
229
  return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderBottomWidth() }
229
230
  }
230
- if key == ((Core_ui_styling_style_properties.borderBottomWidthProperty?.setNative)?.key ?? "undefined") {
231
+ if key == (try? ((Core_ui_styling_style_properties.borderBottomWidthProperty?.setNative)?.key ?? "undefined")) {
231
232
  return { __this, __a in
232
233
  try (jsCastPresent(__this) as Button).symbol_setNative_borderBottomWidth(nil)
233
234
  return nil
234
235
  }
235
236
  }
236
- if key == ((Core_ui_styling_style_properties.borderLeftWidthProperty?.getDefault)?.key ?? "undefined") {
237
+ if key == (try? ((Core_ui_styling_style_properties.borderLeftWidthProperty?.getDefault)?.key ?? "undefined")) {
237
238
  return { __this, __a in return try (jsCastPresent(__this) as Button).symbol_getDefault_borderLeftWidth() }
238
239
  }
239
- if key == ((Core_ui_styling_style_properties.borderLeftWidthProperty?.setNative)?.key ?? "undefined") {
240
+ if key == (try? ((Core_ui_styling_style_properties.borderLeftWidthProperty?.setNative)?.key ?? "undefined")) {
240
241
  return { __this, __a in
241
242
  try (jsCastPresent(__this) as Button).symbol_setNative_borderLeftWidth(nil)
242
243
  return nil
243
244
  }
244
245
  }
245
- if key == ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined") {
246
+ if key == (try? ((Core_ui_styling_style_properties.paddingInternalProperty?.setNative)?.key ?? "undefined")) {
246
247
  return { __this, __a in
247
248
  try (jsCastPresent(__this) as Button).symbol_setNative_paddingInternal("")
248
249
  return nil
249
250
  }
250
251
  }
251
- if key == ((Core_ui_text_base_text_base_common.textAlignmentProperty?.setNative)?.key ?? "undefined") {
252
+ if key == (try? ((Core_ui_text_base_text_base_common.textAlignmentProperty?.setNative)?.key ?? "undefined")) {
252
253
  return { __this, __a in
253
254
  try (jsCastPresent(__this) as Button).symbol_setNative_textAlignment_Button(
254
255
  (try jsConvertedString(jsArg(__a, 0))))
255
256
  return nil
256
257
  }
257
258
  }
258
- if key == ((Core_ui_text_base_text_base_common.whiteSpaceProperty?.setNative)?.key ?? "undefined") {
259
+ if key == (try? ((Core_ui_text_base_text_base_common.whiteSpaceProperty?.setNative)?.key ?? "undefined")) {
259
260
  return { __this, __a in
260
261
  try (jsCastPresent(__this) as Button).symbol_setNative_whiteSpace("")
261
262
  return nil
262
263
  }
263
264
  }
264
- if key == ((Core_ui_text_base_text_base_common.textOverflowProperty?.setNative)?.key ?? "undefined") {
265
+ if key == (try? ((Core_ui_text_base_text_base_common.textOverflowProperty?.setNative)?.key ?? "undefined")) {
265
266
  return { __this, __a in
266
267
  try (jsCastPresent(__this) as Button).symbol_setNative_textOverflow("")
267
268
  return nil
268
269
  }
269
270
  }
270
- if key == ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined") {
271
+ if key == (try? ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined")) {
271
272
  return { __this, __a in
272
273
  try (jsCastPresent(__this) as Button).symbol_setNative_direction_Button(
273
274
  (try jsConvertedString(jsArg(__a, 0))))
@@ -3622,17 +3622,17 @@ public enum Core_ui_core_properties_index {
3622
3622
  #sourceLocation()
3623
3623
  /// Wrap a local setter: a string holding var()/calc() is written substituted and kept
3624
3624
  /// for the cascade to substitute again, any other write releases what was kept.
3625
- public static func localCssExpressionSetter<T: Style>(_ cssName: String, _ set: Any?) -> Any? {
3625
+ public static func localCssExpressionSetter(_ cssName: String, _ set: Any?) -> Any? {
3626
3626
  #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:419)
3627
3627
  return
3628
3628
  ({ (__this: Any?, __a: [Any?]) throws -> Any? in
3629
- let __self: T? = jsConverted(__this, to: T.self)
3630
3629
  let value: Any? = jsArg(__a, 0)
3631
3630
  try { () throws -> Void in
3632
3631
  #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:420)
3633
3632
  if Core_ui_core_properties_index.hasCssExpression(value) {
3634
3633
  #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:421)
3635
- let view: ViewBase? = try jsUnwrap(__self.viewRef, "get").get()
3634
+ let view: ViewBase? = try jsUnwrap(jsGet(__this, "viewRef") as? JSWeakRef<ViewBase>, "get")
3635
+ .get()
3636
3636
  #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:422)
3637
3637
  if jsTruthy(view as Any?) {
3638
3638
  #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:423)
@@ -3641,18 +3641,19 @@ public enum Core_ui_core_properties_index {
3641
3641
  let substituted: Any? = try Core_ui_core_properties_index._evaluateCssExpressions(
3642
3642
  view, cssName, jsLenientString(value), (reads as? JSMap<String, String>))
3643
3643
  #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:425)
3644
- _ = try jsCallMethod(set, "call", __self, substituted)
3644
+ _ = try jsCallMethod(set, "call", __this, substituted)
3645
3645
  #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:426)
3646
3646
  try Core_ui_core_properties_index.keepLocalCssExpression(
3647
- __self, cssName, jsLenientString(value), substituted, reads)
3647
+ (try jsCast(__this, Style.self)), cssName, jsLenientString(value), substituted, reads)
3648
3648
  #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:428)
3649
3649
  return
3650
3650
  }
3651
3651
  }
3652
3652
  #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:432)
3653
- _ = try jsCallMethod(set, "call", __self, value)
3653
+ _ = try jsCallMethod(set, "call", __this, value)
3654
3654
  #sourceLocation(file:"@nativescript/core/ui.core.properties.index.ts",line:433)
3655
- try Core_ui_core_properties_index.releaseLocalCssExpression(__self, cssName)
3655
+ try Core_ui_core_properties_index.releaseLocalCssExpression(
3656
+ (try jsCast(__this, Style.self)), cssName)
3656
3657
  }()
3657
3658
  return nil
3658
3659
  } as JSMethod)