@nstudio/nativescript-compiler 9.2.0-alpha.17 → 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.
- package/README.md +3 -0
- package/config.js +1 -0
- package/dist/kotlin/access.js +8 -7
- package/dist/kotlin/arguments.js +6 -0
- package/dist/kotlin/assignment.js +22 -13
- package/dist/kotlin/builtins.js +67 -0
- package/dist/kotlin/calls.js +3 -2
- package/dist/kotlin/class-declaration.js +4 -9
- package/dist/kotlin/class-methods.js +2 -2
- package/dist/kotlin/core-api.js +1 -1
- package/dist/kotlin/declarations.js +1 -1
- package/dist/kotlin/expression-statements.js +13 -1
- package/dist/kotlin/functions.js +1 -0
- package/dist/kotlin/literals.js +4 -8
- package/dist/kotlin/names.js +4 -4
- package/dist/kotlin/native/api.js +1 -1
- package/dist/kotlin/operators.js +25 -25
- package/dist/kotlin/optional-chains.js +1 -1
- package/dist/kotlin/overrides.js +3 -3
- package/dist/kotlin/state-backend.js +6 -2
- package/dist/kotlin/translator.js +1 -1
- package/dist/kotlin/types.js +4 -4
- package/dist/semantics/classes.js +15 -0
- package/dist/semantics/conversion.js +9 -1
- package/dist/semantics/facts.js +1 -1
- package/dist/semantics/lang.js +10 -0
- package/dist/semantics/lower.js +54 -0
- package/dist/semantics/lowering-methods.js +5 -0
- package/dist/semantics/placement.js +9 -3
- package/dist/semantics/runtime.js +1 -0
- package/dist/semantics/signals.js +11 -0
- package/dist/semantics/states/missing.js +7 -0
- package/dist/semantics/tdz.js +54 -15
- package/dist/semantics/throws.js +2 -2
- package/dist/semantics/translator-methods.js +1 -1
- package/dist/swift/access.js +7 -9
- package/dist/swift/arguments.js +14 -9
- package/dist/swift/assignment.js +26 -15
- package/dist/swift/calls.js +13 -5
- package/dist/swift/class-methods.js +2 -1
- package/dist/swift/classes.js +7 -9
- package/dist/swift/components.js +3 -3
- package/dist/swift/control-flow.js +1 -1
- package/dist/swift/conversion.js +5 -2
- package/dist/swift/core-api.js +2 -2
- package/dist/swift/declarations.js +1 -1
- package/dist/swift/expressions.js +6 -2
- package/dist/swift/from-any.js +1 -1
- package/dist/swift/functions.js +5 -6
- package/dist/swift/global-calls.js +1 -1
- package/dist/swift/lenient.js +1 -6
- package/dist/swift/library.js +2 -2
- package/dist/swift/literals.js +8 -3
- package/dist/swift/method-values.js +2 -1
- package/dist/swift/modules.js +3 -3
- package/dist/swift/names.js +7 -7
- package/dist/swift/native/calls.js +10 -4
- package/dist/swift/object-classes.js +84 -1
- package/dist/swift/operators.js +31 -29
- package/dist/swift/placement.js +22 -6
- package/dist/swift/state-backend.js +3 -2
- package/dist/swift/static-calls.js +3 -4
- package/dist/swift/syntax.js +10 -6
- package/dist/swift/translator.js +1 -1
- package/dist/swift/type-facts.js +3 -3
- package/dist/swift/types.js +5 -5
- package/dist/targets/ios/build.js +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +1 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +525 -99
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +2 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +29 -6
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +3 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +49 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +0 -8
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +0 -16
- package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +6 -4
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +19 -7
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +19 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +17 -29
- package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +144 -22
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +8 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +2 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +0 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +6 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +531 -8
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +0 -9
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +3 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +19 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +5 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +232 -174
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_android_runtime_version.kt +75 -0
- package/kit-android/generated/manifest.json +21 -18
- 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/Array.kt +497 -42
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +1 -1
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +22 -2
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +7 -3
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +14 -10
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +3 -9
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +20 -21
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +5 -7
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +2 -4
- package/kit-apple/Sources/NativeScriptKit/Core/Object_specified_substituted_reads.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +348 -330
- package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +358 -359
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +47 -29
- package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +3 -1
- package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +95 -53
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +58 -49
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +67 -52
- package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +69 -53
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +144 -32
- package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +30 -19
- package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +190 -78
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +205 -201
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +41 -42
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +2 -2
- 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.index.ios.swift +77 -65
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +10 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1273 -824
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +87 -67
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
- 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.frame.frame-common.swift +2 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +6 -6
- 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.flexbox-layout.index.ios.swift +22 -21
- 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 +204 -190
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
- 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 +17 -12
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +869 -838
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +46 -31
- 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 +3 -4
- 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.text-view.text-view-common.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +32 -32
- 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.android-runtime-version.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +62 -61
- package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +4 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +2 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +280 -9
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +1 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +1 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +1 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +2 -0
- package/package.json +6 -4
|
@@ -219,40 +219,48 @@ open class ImageSource: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
219
219
|
open class func fromResource(_ name: String) throws -> JSPromise<ImageSource>? {
|
|
220
220
|
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:120)
|
|
221
221
|
return JSPromise<ImageSource> { (__resolvers3: JSResolvers<ImageSource>) throws -> Void in
|
|
222
|
-
|
|
223
|
-
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
"
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
222
|
+
let reject: (Any?) -> Void = { __resolvers3.reject($0) }
|
|
223
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:121)
|
|
224
|
+
do {
|
|
225
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:122)
|
|
226
|
+
UIImage.tns_safeDecodeNamed(
|
|
227
|
+
name,
|
|
228
|
+
completion: jsEnter { (__b0: UIImage?) -> Void in
|
|
229
|
+
let image: UIImage? = __b0
|
|
230
|
+
jsReport {
|
|
231
|
+
try
|
|
232
|
+
({ (image: UIImage?) throws -> Void in
|
|
233
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:123)
|
|
234
|
+
if jsTruthy(image) {
|
|
235
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:124)
|
|
236
|
+
try __resolvers3.resolve(ImageSource(image))
|
|
237
|
+
} else {
|
|
238
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:126)
|
|
239
|
+
UIImage.tns_safeDecodeNamed(
|
|
240
|
+
"\(name).jpg",
|
|
241
|
+
completion: jsEnter { (__b0: UIImage?) -> Void in
|
|
242
|
+
let img: UIImage? = __b0
|
|
243
|
+
jsReport {
|
|
244
|
+
try
|
|
245
|
+
({ (img: UIImage?) throws -> Void in
|
|
246
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:127)
|
|
247
|
+
if jsTruthy(img) {
|
|
248
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:128)
|
|
249
|
+
try __resolvers3.resolve(ImageSource(img))
|
|
250
|
+
}
|
|
251
|
+
})(img)
|
|
252
|
+
}
|
|
253
|
+
})
|
|
254
|
+
}
|
|
255
|
+
})(image)
|
|
256
|
+
}
|
|
257
|
+
})
|
|
258
|
+
} catch {
|
|
259
|
+
#sourceLocation()
|
|
260
|
+
let ex: Any? = jsCaught(error)
|
|
261
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:134)
|
|
262
|
+
try jsCallable(reject, "reject")(ex)
|
|
263
|
+
}
|
|
256
264
|
}
|
|
257
265
|
}
|
|
258
266
|
#sourceLocation()
|
|
@@ -333,23 +341,31 @@ open class ImageSource: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
333
341
|
open class func fromData(_ data: Any?) throws -> JSPromise<ImageSource>? {
|
|
334
342
|
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:182)
|
|
335
343
|
return JSPromise<ImageSource> { (__resolvers5: JSResolvers<ImageSource>) throws -> Void in
|
|
336
|
-
|
|
337
|
-
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
344
|
+
let reject: (Any?) -> Void = { __resolvers5.reject($0) }
|
|
345
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:183)
|
|
346
|
+
do {
|
|
347
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:184)
|
|
348
|
+
UIImage.tns_decode(
|
|
349
|
+
with: jsNativeData(data),
|
|
350
|
+
completion: jsEnter { (__b0: UIImage?) -> Void in
|
|
351
|
+
let uiImage: UIImage? = __b0
|
|
352
|
+
jsReport {
|
|
353
|
+
try
|
|
354
|
+
({ (uiImage: UIImage?) throws -> Void in
|
|
355
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:185)
|
|
356
|
+
if jsTruthy(uiImage) {
|
|
357
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:186)
|
|
358
|
+
try __resolvers5.resolve(ImageSource(uiImage))
|
|
359
|
+
}
|
|
360
|
+
})(uiImage)
|
|
361
|
+
}
|
|
362
|
+
})
|
|
363
|
+
} catch {
|
|
364
|
+
#sourceLocation()
|
|
365
|
+
let ex: Any? = jsCaught(error)
|
|
366
|
+
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:190)
|
|
367
|
+
try jsCallable(reject, "reject")(ex)
|
|
368
|
+
}
|
|
353
369
|
}
|
|
354
370
|
}
|
|
355
371
|
#sourceLocation()
|
|
@@ -672,7 +688,7 @@ open class ImageSource: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
672
688
|
try
|
|
673
689
|
({ () throws -> Void in
|
|
674
690
|
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:392)
|
|
675
|
-
__resolvers7.resolve(isSuccess)
|
|
691
|
+
try __resolvers7.resolve(isSuccess)
|
|
676
692
|
})()
|
|
677
693
|
}
|
|
678
694
|
})
|
|
@@ -767,7 +783,7 @@ open class ImageSource: JSDynamic, JSExpando, JSKeysMade, JSStaticKeyed {
|
|
|
767
783
|
try
|
|
768
784
|
({ () throws -> Void in
|
|
769
785
|
#sourceLocation(file:"@nativescript/core/image-source.index.ios.ts",line:437)
|
|
770
|
-
__resolvers8.resolve(try jsConvertedString(result))
|
|
786
|
+
try __resolvers8.resolve(try jsConvertedString(result))
|
|
771
787
|
})()
|
|
772
788
|
}
|
|
773
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)
|