@nstudio/nativescript-compiler 9.2.0-alpha.18 → 9.2.0-alpha.20
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.
- package/config.js +1 -0
- package/dist/kotlin/arguments.js +6 -0
- package/dist/kotlin/class-methods.js +4 -4
- package/dist/kotlin/overrides.js +1 -1
- package/dist/kotlin/placement.js +23 -2
- package/dist/kotlin/untyped-values.js +5 -0
- package/dist/semantics/conversion.js +9 -1
- package/dist/semantics/runtime.js +1 -0
- package/dist/semantics/signals.js +1 -1
- package/dist/semantics/throws.js +1 -1
- package/dist/swift/arguments.js +14 -9
- package/dist/swift/assignment.js +6 -1
- package/dist/swift/calls.js +7 -2
- package/dist/swift/class-methods.js +2 -1
- package/dist/swift/library.js +2 -2
- package/dist/swift/method-values.js +2 -1
- package/dist/swift/names.js +4 -4
- package/dist/swift/native/calls.js +9 -3
- package/dist/swift/placement.js +18 -3
- package/dist/swift/static-calls.js +1 -1
- package/dist/swift/syntax.js +1 -1
- package/dist/swift/types.js +2 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +8 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +16 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +2 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +38 -37
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +9 -0
- package/kit-android/generated/source-lines.json +1 -1
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +9 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Dynamic.kt +28 -13
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +10 -2
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +11 -10
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +6 -2
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +7 -7
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +2 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +33 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +12 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +6 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +8 -7
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +79 -59
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +17 -16
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +27 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +9 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +6 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +8 -8
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +4 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +9 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +9 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +38 -20
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +18 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +28 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +19 -12
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +14 -12
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +14 -9
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +12 -10
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +36 -20
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +25 -22
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +2 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +21 -14
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +33 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +15 -15
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +6 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Functions.swift +3 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +5 -2
- package/package.json +5 -3
|
@@ -64,6 +64,15 @@ object AppModules {
|
|
|
64
64
|
if (name !in names) names.add(name)
|
|
65
65
|
null
|
|
66
66
|
})
|
|
67
|
+
jsSet(jsGlobalThis, "requestAnimationFrame", jsFunction { a ->
|
|
68
|
+
val cb = a.getOrNull(0)
|
|
69
|
+
requestAnimationFrame { t -> jsCall(cb, t) }
|
|
70
|
+
})
|
|
71
|
+
jsSet(jsGlobalThis, "cancelAnimationFrame", jsFunction { a ->
|
|
72
|
+
val id = a.getOrNull(0)
|
|
73
|
+
cancelAnimationFrame(if (id == null || id === jsNull) null else jsToNumber(id))
|
|
74
|
+
null
|
|
75
|
+
})
|
|
67
76
|
}
|
|
68
77
|
}
|
|
69
78
|
|
|
@@ -308,18 +308,33 @@ private class JSMethodRest3(override val method: JSMethod) : JSMethodHolder, (An
|
|
|
308
308
|
inline fun <T> jsUnlessNullish(value: Any?, read: (Any?) -> T): T? = if (jsIsNullish(value)) null else read(value)
|
|
309
309
|
|
|
310
310
|
/** A function value held untyped, as a Kotlin function taking its `this` first: a JSMethod gets it as its receiver. */
|
|
311
|
-
fun jsThisFunction(f: Any?, arity: Int
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
311
|
+
fun jsThisFunction(f: Any?, arity: Int, hasThis: Boolean = true): Any {
|
|
312
|
+
val m = when (f) {
|
|
313
|
+
is JSMethod -> f
|
|
314
|
+
is JSMethodHolder -> f.method
|
|
315
|
+
else -> null
|
|
316
|
+
}
|
|
317
|
+
if (m != null) return when (arity) {
|
|
318
|
+
1 -> { a: Any? -> m.call(a, arrayOf()) }
|
|
319
|
+
2 -> { a: Any?, b: Any? -> m.call(a, arrayOf(b)) }
|
|
320
|
+
3 -> { a: Any?, b: Any?, c: Any? -> m.call(a, arrayOf(b, c)) }
|
|
321
|
+
4 -> { a: Any?, b: Any?, c: Any?, d: Any? -> m.call(a, arrayOf(b, c, d)) }
|
|
322
|
+
else -> { a: Any?, b: Any?, c: Any?, d: Any?, e: Any? -> m.call(a, arrayOf(b, c, d, e)) }
|
|
323
|
+
}
|
|
324
|
+
if (!hasThis) return when (arity) {
|
|
325
|
+
1 -> { _: Any? -> jsCall(f) }
|
|
326
|
+
2 -> { _: Any?, b: Any? -> jsCall(f, b) }
|
|
327
|
+
3 -> { _: Any?, b: Any?, c: Any? -> jsCall(f, b, c) }
|
|
328
|
+
4 -> { _: Any?, b: Any?, c: Any?, d: Any? -> jsCall(f, b, c, d) }
|
|
329
|
+
else -> { _: Any?, b: Any?, c: Any?, d: Any?, e: Any? -> jsCall(f, b, c, d, e) }
|
|
330
|
+
}
|
|
331
|
+
return when (arity) {
|
|
332
|
+
1 -> jsFunction1<Any?, Any?>(f)
|
|
333
|
+
2 -> jsFunction2<Any?, Any?, Any?>(f)
|
|
334
|
+
3 -> jsFunction3<Any?, Any?, Any?, Any?>(f)
|
|
335
|
+
4 -> jsFunction4<Any?, Any?, Any?, Any?, Any?>(f)
|
|
336
|
+
else -> jsFunction5<Any?, Any?, Any?, Any?, Any?, Any?>(f)
|
|
337
|
+
}
|
|
323
338
|
}
|
|
324
339
|
|
|
325
340
|
/** Argument `index` of a dynamic call; a missing one is undefined. */
|
|
@@ -334,7 +349,7 @@ interface JSDeletable {
|
|
|
334
349
|
fun jsAssign(target: Any?, vararg sources: Any?): Any? {
|
|
335
350
|
for (source in sources) {
|
|
336
351
|
when (source) {
|
|
337
|
-
is JSDynamic -> for (key in source.jsKeys) jsSet(target, key, source.jsGet(key))
|
|
352
|
+
is JSDynamic -> for (key in source.jsKeys.toList()) jsSet(target, key, source.jsGet(key))
|
|
338
353
|
is JSArray<*>, is String -> for (key in jsKeysOf(source)) jsSet(target, key, jsField(source, key))
|
|
339
354
|
else -> {}
|
|
340
355
|
}
|
|
@@ -293,6 +293,8 @@ fun jsObjectRest(source: Any?, taken: List<String>): JSObject {
|
|
|
293
293
|
class JSPropertySlot(
|
|
294
294
|
var get: ((Any?) -> Any?)? = null,
|
|
295
295
|
var set: ((Any?, Any?) -> Unit)? = null,
|
|
296
|
+
var rawGet: Any? = null,
|
|
297
|
+
var rawSet: Any? = null,
|
|
296
298
|
var isAccessor: Boolean = false,
|
|
297
299
|
var enumerable: Boolean = true,
|
|
298
300
|
var writable: Boolean = true,
|
|
@@ -307,6 +309,8 @@ class JSPropertyDescriptor(
|
|
|
307
309
|
val hasValue: Boolean = false,
|
|
308
310
|
val get: ((Any?) -> Any?)? = null,
|
|
309
311
|
val set: ((Any?, Any?) -> Unit)? = null,
|
|
312
|
+
val rawGet: Any? = null,
|
|
313
|
+
val rawSet: Any? = null,
|
|
310
314
|
val enumerable: Boolean? = null,
|
|
311
315
|
val writable: Boolean? = null,
|
|
312
316
|
val configurable: Boolean? = null,
|
|
@@ -316,12 +320,16 @@ class JSPropertyDescriptor(
|
|
|
316
320
|
fun of(o: Any?): JSPropertyDescriptor {
|
|
317
321
|
val d = jsBox(o) as? JSDynamic ?: throw JSException(JSTypeError("Property description must be an object: ${jsToString(o)}"))
|
|
318
322
|
val has = { k: String -> jsHasKey(d, k) }
|
|
319
|
-
val
|
|
320
|
-
val
|
|
323
|
+
val rawG = if (has("get")) jsBox(d.jsGet("get")) else null
|
|
324
|
+
val rawS = if (has("set")) jsBox(d.jsGet("set")) else null
|
|
325
|
+
val g = rawG?.let { jsReceiving(it) }
|
|
326
|
+
val s = rawS?.let { jsReceiving(it) }
|
|
321
327
|
return JSPropertyDescriptor(
|
|
322
328
|
value = if (has("value")) d.jsGet("value") else null, hasValue = has("value"),
|
|
323
329
|
get = g?.let { f -> { self: Any? -> f(self, emptyArray()) } },
|
|
324
330
|
set = s?.let { f -> { self: Any?, v: Any? -> f(self, arrayOf(v)); Unit } },
|
|
331
|
+
rawGet = rawG,
|
|
332
|
+
rawSet = rawS,
|
|
325
333
|
enumerable = if (has("enumerable")) jsTruthy(d.jsGet("enumerable")) else null,
|
|
326
334
|
writable = if (has("writable")) jsTruthy(d.jsGet("writable")) else null,
|
|
327
335
|
configurable = if (has("configurable")) jsTruthy(d.jsGet("configurable")) else null,
|
|
@@ -379,9 +379,9 @@ class JSObject() : JSDynamic, JSSymbolKeyed, JSAccessorKeyed, JSReactiveConverti
|
|
|
379
379
|
if (changes) throw JSException(JSTypeError("Cannot redefine property: $key"))
|
|
380
380
|
}
|
|
381
381
|
if (d.get != null || d.set != null) {
|
|
382
|
-
slot.get = d.get; slot.set = d.set; slot.isAccessor = true; slot.writable = false
|
|
382
|
+
slot.get = d.get; slot.set = d.set; slot.rawGet = d.rawGet; slot.rawSet = d.rawSet; slot.isAccessor = true; slot.writable = false
|
|
383
383
|
} else if (d.hasValue || d.writable != null) {
|
|
384
|
-
if (slot.isAccessor) { slot.get = null; slot.set = null; slot.isAccessor = false }
|
|
384
|
+
if (slot.isAccessor) { slot.get = null; slot.set = null; slot.rawGet = null; slot.rawSet = null; slot.isAccessor = false }
|
|
385
385
|
}
|
|
386
386
|
d.enumerable?.let { slot.enumerable = it }
|
|
387
387
|
d.writable?.let { slot.writable = it }
|
|
@@ -399,7 +399,8 @@ class JSObject() : JSDynamic, JSSymbolKeyed, JSAccessorKeyed, JSReactiveConverti
|
|
|
399
399
|
val g = slot.get
|
|
400
400
|
val s = slot.set
|
|
401
401
|
return JSObject(listOf(
|
|
402
|
-
Pair("get", g?.let {
|
|
402
|
+
Pair("get", slot.rawGet ?: g?.let { JSMethod(0) { self, _ -> it(self) } }),
|
|
403
|
+
Pair("set", slot.rawSet ?: s?.let { JSMethod(1) { self, args -> it(self, args.getOrNull(0)); null } }),
|
|
403
404
|
Pair("enumerable", slot.enumerable), Pair("configurable", slot.configurable)))
|
|
404
405
|
}
|
|
405
406
|
return JSObject(listOf(Pair("value", storage[key]), Pair("writable", slot.writable), Pair("enumerable", slot.enumerable), Pair("configurable", slot.configurable)))
|
|
@@ -488,7 +489,7 @@ class JSObject() : JSDynamic, JSSymbolKeyed, JSAccessorKeyed, JSReactiveConverti
|
|
|
488
489
|
jsTracker?.track()
|
|
489
490
|
val idx = indexKeys
|
|
490
491
|
val s = slots
|
|
491
|
-
if ((idx == null || idx.isEmpty()) && !hasSymbols && (s == null || s.isEmpty())) return namedKeys
|
|
492
|
+
if ((idx == null || idx.isEmpty()) && !hasSymbols && (s == null || s.isEmpty())) return namedKeys.toList()
|
|
492
493
|
val names = if (hasSymbols) namedKeys.filter { !jsIsSymbolKey(it) } else namedKeys
|
|
493
494
|
val all = if (idx == null || idx.isEmpty()) names else idx.map { it.toString() } + names
|
|
494
495
|
return if (s == null || s.isEmpty()) all else all.filter { s[it]?.enumerable ?: true }
|
|
@@ -678,22 +679,22 @@ fun jsCallOptional(function: Any?, vararg args: Any?): Any? = if (jsIsNullish(fu
|
|
|
678
679
|
/** `Object.keys` for what translated code holds: a typed object, an untyped one, an array. */
|
|
679
680
|
fun jsKeysOf(value: Any?): List<String> = when (value) {
|
|
680
681
|
is String -> value.indices.map { it.toString() }
|
|
681
|
-
is JSDynamic -> value.jsKeys
|
|
682
|
-
is Function<*>, is JSFunction -> jsFunctionProperties(value, false)?.jsKeys ?: emptyList()
|
|
683
|
-
is JSArray<*> -> (0 until value.size).filter { value.jsHoles?.get(it) != true }.map { it.toString() } + (value.jsProperties?.jsKeys ?: emptyList())
|
|
682
|
+
is JSDynamic -> value.jsKeys.toList()
|
|
683
|
+
is Function<*>, is JSFunction -> jsFunctionProperties(value, false)?.jsKeys?.toList() ?: emptyList()
|
|
684
|
+
is JSArray<*> -> (0 until value.size).filter { value.jsHoles?.get(it) != true }.map { it.toString() } + (value.jsProperties?.jsKeys?.toList() ?: emptyList())
|
|
684
685
|
else -> emptyList()
|
|
685
686
|
}
|
|
686
687
|
|
|
687
688
|
fun jsObjectKeys(value: Any?): JSArray<String> = JSArray(jsKeysOf(value))
|
|
688
689
|
|
|
689
690
|
fun jsObjectValues(value: Any?): JSArray<Any?> = when (value) {
|
|
690
|
-
is JSDynamic -> JSArray(value.jsKeys.map { value.jsGet(it) })
|
|
691
|
+
is JSDynamic -> JSArray(value.jsKeys.toList().map { value.jsGet(it) })
|
|
691
692
|
is JSArray<*> -> JSArray(jsKeysOf(value).map { jsField(value, it) })
|
|
692
693
|
else -> JSArray()
|
|
693
694
|
}
|
|
694
695
|
|
|
695
696
|
fun jsObjectEntries(value: Any?): JSArray<Pair<String, Any?>> = when (value) {
|
|
696
|
-
is JSDynamic -> JSArray(value.jsKeys.map { Pair(it, value.jsGet(it)) })
|
|
697
|
+
is JSDynamic -> JSArray(value.jsKeys.toList().map { Pair(it, value.jsGet(it)) })
|
|
697
698
|
is JSArray<*> -> JSArray(jsKeysOf(value).map { Pair(it, jsField(value, it)) })
|
|
698
699
|
else -> JSArray()
|
|
699
700
|
}
|
|
@@ -702,7 +703,7 @@ fun jsObjectEntries(value: Any?): JSArray<Pair<String, Any?>> = when (value) {
|
|
|
702
703
|
fun <T : JSDynamic> jsObjectAssign(target: T, vararg sources: Any?): T {
|
|
703
704
|
for (source in sources) {
|
|
704
705
|
when (source) {
|
|
705
|
-
is JSDynamic -> for (key in source.jsKeys) target.jsSet(key, source.jsGet(key))
|
|
706
|
+
is JSDynamic -> for (key in source.jsKeys.toList()) target.jsSet(key, source.jsGet(key))
|
|
706
707
|
is JSArray<*>, is String -> for (key in jsKeysOf(source)) target.jsSet(key, jsField(source, key))
|
|
707
708
|
else -> {}
|
|
708
709
|
}
|
|
@@ -279,8 +279,12 @@ public enum Core_ui_builder_index {
|
|
|
279
279
|
jsAwait(
|
|
280
280
|
value: try jsObjectRequired(Builder.load(pathOrOptions, context)),
|
|
281
281
|
{ (__t_1: View) -> Void in
|
|
282
|
-
|
|
283
|
-
|
|
282
|
+
do {
|
|
283
|
+
__async1.returnValue(try jsObjectRequired(__t_1))
|
|
284
|
+
} catch {
|
|
285
|
+
__async1.throwValue(jsCaught(error))
|
|
286
|
+
}
|
|
287
|
+
}, __async1.throwValue)
|
|
284
288
|
}
|
|
285
289
|
return __async1.promise
|
|
286
290
|
}
|
|
@@ -146,7 +146,7 @@ open class ObservableArray: Observable, JSStringConvertible, JSToJSONConvertible
|
|
|
146
146
|
{ (__t_1: Any?) -> Void in
|
|
147
147
|
_ = __t_1
|
|
148
148
|
__continue1()
|
|
149
|
-
},
|
|
149
|
+
}, __gen1.throwValue,
|
|
150
150
|
{ (__r_1: Any?) -> Void in
|
|
151
151
|
__gen1.returnValue(__r_1)
|
|
152
152
|
})
|
|
@@ -502,7 +502,7 @@ open class FileSystemAccess: JSDynamic, JSExpando, JSStaticKeyed {
|
|
|
502
502
|
size, Double(jsUnwrap(data, "length").length))
|
|
503
503
|
{
|
|
504
504
|
#sourceLocation(file:"@nativescript/core/file-system.file-system-access.ios.ts",line:306)
|
|
505
|
-
__resolvers1.resolve(true)
|
|
505
|
+
try __resolvers1.resolve(true)
|
|
506
506
|
} else {
|
|
507
507
|
#sourceLocation(file:"@nativescript/core/file-system.file-system-access.ios.ts",line:308)
|
|
508
508
|
try jsCallable(reject, "reject")(
|
|
@@ -689,7 +689,7 @@ open class FileSystemAccess: JSDynamic, JSExpando, JSStaticKeyed {
|
|
|
689
689
|
try jsCallable(reject, "reject")(error)
|
|
690
690
|
} else {
|
|
691
691
|
#sourceLocation(file:"@nativescript/core/file-system.file-system-access.ios.ts",line:414)
|
|
692
|
-
__resolvers5.resolve()
|
|
692
|
+
try __resolvers5.resolve()
|
|
693
693
|
}
|
|
694
694
|
}))
|
|
695
695
|
} catch {
|
|
@@ -767,7 +767,7 @@ open class FileSystemAccess: JSDynamic, JSExpando, JSStaticKeyed {
|
|
|
767
767
|
try jsCallable(reject, "reject")(error)
|
|
768
768
|
} else {
|
|
769
769
|
#sourceLocation(file:"@nativescript/core/file-system.file-system-access.ios.ts",line:458)
|
|
770
|
-
__resolvers6.resolve()
|
|
770
|
+
try __resolvers6.resolve()
|
|
771
771
|
}
|
|
772
772
|
#sourceLocation(file:"@nativescript/core/file-system.file-system-access.ios.ts",line:460)
|
|
773
773
|
try jsUnwrap(handle, "closeFile").closeFile()
|
|
@@ -824,7 +824,7 @@ open class FileSystemAccess: JSDynamic, JSExpando, JSStaticKeyed {
|
|
|
824
824
|
try jsCallable(reject, "reject")(error)
|
|
825
825
|
} else {
|
|
826
826
|
#sourceLocation(file:"@nativescript/core/file-system.file-system-access.ios.ts",line:491)
|
|
827
|
-
__resolvers7.resolve()
|
|
827
|
+
try __resolvers7.resolve()
|
|
828
828
|
}
|
|
829
829
|
#sourceLocation(file:"@nativescript/core/file-system.file-system-access.ios.ts",line:493)
|
|
830
830
|
try jsUnwrap(handle, "closeFile").closeFile()
|
|
@@ -893,7 +893,7 @@ open class FileSystemAccess: JSDynamic, JSExpando, JSStaticKeyed {
|
|
|
893
893
|
try jsCallable(reject, "reject")(error)
|
|
894
894
|
} else {
|
|
895
895
|
#sourceLocation(file:"@nativescript/core/file-system.file-system-access.ios.ts",line:528)
|
|
896
|
-
__resolvers8.resolve()
|
|
896
|
+
try __resolvers8.resolve()
|
|
897
897
|
}
|
|
898
898
|
#sourceLocation(file:"@nativescript/core/file-system.file-system-access.ios.ts",line:530)
|
|
899
899
|
try jsUnwrap(handle, "closeFile").closeFile()
|
|
@@ -958,7 +958,7 @@ open class FileSystemAccess: JSDynamic, JSExpando, JSStaticKeyed {
|
|
|
958
958
|
try
|
|
959
959
|
({ () throws -> Void in
|
|
960
960
|
#sourceLocation(file:"@nativescript/core/file-system.file-system-access.ios.ts",line:563)
|
|
961
|
-
__resolvers9.resolve()
|
|
961
|
+
try __resolvers9.resolve()
|
|
962
962
|
})()
|
|
963
963
|
}
|
|
964
964
|
})
|
|
@@ -1002,7 +1002,7 @@ open class FileSystemAccess: JSDynamic, JSExpando, JSStaticKeyed {
|
|
|
1002
1002
|
"", 0,
|
|
1003
1003
|
{ () throws -> Void in
|
|
1004
1004
|
#sourceLocation(file:"@nativescript/core/file-system.file-system-access.ios.ts",line:587)
|
|
1005
|
-
__resolvers10.resolve()
|
|
1005
|
+
try __resolvers10.resolve()
|
|
1006
1006
|
}))
|
|
1007
1007
|
} catch {
|
|
1008
1008
|
#sourceLocation()
|
|
@@ -100,7 +100,7 @@ open class FileSystemEntity: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
100
100
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:82)
|
|
101
101
|
if !hasError {
|
|
102
102
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:83)
|
|
103
|
-
__resolvers1.resolve(true)
|
|
103
|
+
try __resolvers1.resolve(true)
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -149,7 +149,7 @@ open class FileSystemEntity: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
149
149
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:116)
|
|
150
150
|
if !hasError {
|
|
151
151
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:117)
|
|
152
|
-
__resolvers2.resolve(true)
|
|
152
|
+
try __resolvers2.resolve(true)
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
@@ -500,7 +500,7 @@ open class File: FileSystemEntity {
|
|
|
500
500
|
"", 0,
|
|
501
501
|
{ () throws -> Void in
|
|
502
502
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:379)
|
|
503
|
-
__resolvers3.resolve()
|
|
503
|
+
try __resolvers3.resolve()
|
|
504
504
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:380)
|
|
505
505
|
self._locked = false
|
|
506
506
|
}),
|
|
@@ -573,7 +573,7 @@ open class File: FileSystemEntity {
|
|
|
573
573
|
"", 0,
|
|
574
574
|
{ () throws -> Void in
|
|
575
575
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:426)
|
|
576
|
-
__resolvers4.resolve(true)
|
|
576
|
+
try __resolvers4.resolve(true)
|
|
577
577
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:427)
|
|
578
578
|
self._locked = false
|
|
579
579
|
}),
|
|
@@ -646,7 +646,7 @@ open class File: FileSystemEntity {
|
|
|
646
646
|
"", 1,
|
|
647
647
|
{ (result: Any?) throws -> Void in
|
|
648
648
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:473)
|
|
649
|
-
__resolvers5.resolve(try jsConvertedBool(result))
|
|
649
|
+
try __resolvers5.resolve(try jsConvertedBool(result))
|
|
650
650
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:474)
|
|
651
651
|
self._locked = false
|
|
652
652
|
}),
|
|
@@ -712,7 +712,7 @@ open class File: FileSystemEntity {
|
|
|
712
712
|
"", 1,
|
|
713
713
|
{ (result: Any?) throws -> Void in
|
|
714
714
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:520)
|
|
715
|
-
__resolvers6.resolve(result)
|
|
715
|
+
try __resolvers6.resolve(result)
|
|
716
716
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:521)
|
|
717
717
|
self._locked = false
|
|
718
718
|
}),
|
|
@@ -778,7 +778,7 @@ open class File: FileSystemEntity {
|
|
|
778
778
|
"", 0,
|
|
779
779
|
{ () throws -> Void in
|
|
780
780
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:567)
|
|
781
|
-
__resolvers7.resolve()
|
|
781
|
+
try __resolvers7.resolve()
|
|
782
782
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:568)
|
|
783
783
|
self._locked = false
|
|
784
784
|
}),
|
|
@@ -850,7 +850,7 @@ open class File: FileSystemEntity {
|
|
|
850
850
|
"", 1,
|
|
851
851
|
{ (result: Any?) throws -> Void in
|
|
852
852
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:614)
|
|
853
|
-
__resolvers8.resolve(try jsConvertedString(result))
|
|
853
|
+
try __resolvers8.resolve(try jsConvertedString(result))
|
|
854
854
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:615)
|
|
855
855
|
self._locked = false
|
|
856
856
|
}),
|
|
@@ -918,7 +918,7 @@ open class File: FileSystemEntity {
|
|
|
918
918
|
"", 0,
|
|
919
919
|
{ () throws -> Void in
|
|
920
920
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:660)
|
|
921
|
-
__resolvers9.resolve(true)
|
|
921
|
+
try __resolvers9.resolve(true)
|
|
922
922
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:661)
|
|
923
923
|
self._locked = false
|
|
924
924
|
}),
|
|
@@ -1118,7 +1118,7 @@ open class Folder: FileSystemEntity {
|
|
|
1118
1118
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:736)
|
|
1119
1119
|
if !hasError {
|
|
1120
1120
|
#sourceLocation(file:"@nativescript/core/file-system.index.ts",line:737)
|
|
1121
|
-
__resolvers10.resolve(true)
|
|
1121
|
+
try __resolvers10.resolve(true)
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
@@ -318,7 +318,7 @@ public enum Core_http_http_request_internal_index {
|
|
|
318
318
|
#sourceLocation(file:"@nativescript/core/http.http-request-internal.index.ios.ts",line:166)
|
|
319
319
|
if jsTruthy(image) {
|
|
320
320
|
#sourceLocation(file:"@nativescript/core/http.http-request-internal.index.ios.ts",line:167)
|
|
321
|
-
__resolvers2.resolve(image)
|
|
321
|
+
try __resolvers2.resolve(image)
|
|
322
322
|
} else {
|
|
323
323
|
#sourceLocation(file:"@nativescript/core/http.http-request-internal.index.ios.ts",line:169)
|
|
324
324
|
try jsCallable(
|
|
@@ -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
|
-
(
|
|
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
|
-
(
|
|
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
|
-
(
|
|
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?"}]
|
|
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"}],
|