@nstudio/nativescript-compiler 9.2.0-alpha.16 → 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.
- package/README.md +3 -0
- package/dist/kit/kit-index.js +9 -0
- package/dist/kotlin/access.js +14 -15
- package/dist/kotlin/arguments.js +2 -2
- 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 +16 -1
- package/dist/kotlin/class-methods.js +2 -2
- package/dist/kotlin/components.js +2 -7
- package/dist/kotlin/core-api.js +3 -22
- package/dist/kotlin/declarations.js +86 -9
- package/dist/kotlin/expression-statements.js +13 -1
- package/dist/kotlin/functions.js +2 -4
- package/dist/kotlin/global-calls.js +1 -4
- package/dist/kotlin/literals.js +3 -10
- package/dist/kotlin/names.js +6 -4
- package/dist/kotlin/native/api.js +1 -1
- package/dist/kotlin/native/classfiles.js +2 -13
- package/dist/kotlin/operators.js +36 -30
- package/dist/kotlin/optional-chains.js +3 -10
- package/dist/kotlin/overrides.js +5 -17
- package/dist/kotlin/placement.js +1 -12
- package/dist/kotlin/state-backend.js +6 -2
- package/dist/kotlin/statements.js +1 -13
- package/dist/kotlin/translator.js +3 -11
- package/dist/kotlin/type-tests.js +1 -1
- package/dist/kotlin/types.js +6 -23
- package/dist/program/core-facts.js +9 -0
- package/dist/semantics/classes.js +15 -0
- package/dist/semantics/facts.js +38 -2
- package/dist/semantics/lang.js +29 -0
- package/dist/semantics/lower.js +144 -0
- package/dist/semantics/lowering-methods.js +120 -3
- package/dist/semantics/marks.js +30 -0
- package/dist/semantics/placement.js +9 -3
- package/dist/semantics/refusals.js +12 -11
- package/dist/semantics/signals.js +11 -0
- package/dist/semantics/states/missing.js +7 -0
- package/dist/semantics/tdz.js +142 -8
- package/dist/semantics/throws.js +1 -1
- package/dist/semantics/translator-methods.js +1 -1
- package/dist/swift/access.js +13 -17
- package/dist/swift/assignment.js +30 -16
- package/dist/swift/calls.js +13 -5
- package/dist/swift/classes.js +22 -10
- package/dist/swift/components.js +3 -7
- package/dist/swift/control-flow.js +1 -1
- package/dist/swift/conversion.js +5 -2
- package/dist/swift/core-api.js +11 -31
- package/dist/swift/declarations.js +1 -6
- package/dist/swift/expression-statements.js +7 -0
- 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 -5
- package/dist/swift/lenient.js +0 -7
- package/dist/swift/literals.js +8 -3
- package/dist/swift/method-values.js +1 -19
- package/dist/swift/modules.js +5 -3
- package/dist/swift/names.js +3 -12
- package/dist/swift/native/api.js +3 -1
- package/dist/swift/native/calls.js +1 -1
- package/dist/swift/native/dispatch.js +2 -8
- package/dist/swift/object-classes.js +84 -1
- package/dist/swift/operators.js +37 -34
- package/dist/swift/optional-chains.js +1 -8
- package/dist/swift/parameters.js +0 -4
- package/dist/swift/placement.js +5 -15
- package/dist/swift/results.js +0 -4
- package/dist/swift/state-backend.js +3 -2
- package/dist/swift/statements.js +1 -13
- package/dist/swift/static-calls.js +2 -3
- package/dist/swift/syntax.js +9 -5
- package/dist/swift/translator.js +1 -11
- package/dist/swift/type-facts.js +3 -3
- package/dist/swift/types.js +3 -3
- package/dist/targets/ios/build.js +1 -1
- package/dist/types/adapter-api.d.ts +3 -3
- 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/main/kotlin/org/nativescript/kit/runtime/Array.kt +547 -51
- 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 +52 -6
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +33 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +9 -1
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +137 -28
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +1 -1
- 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 +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +52 -43
- 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 +66 -51
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +67 -51
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +24 -6
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +143 -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.animation.index.ios.swift +77 -65
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1272 -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 +8 -8
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
- 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.layouts.flexbox-layout.index.ios.swift +22 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +202 -188
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +3 -3
- 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.text-base.formatted-string.swift +1 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +1 -1
- 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 +17 -17
- 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/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 +413 -73
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +14 -1
- 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 +2 -2
package/dist/swift/syntax.js
CHANGED
|
@@ -144,21 +144,25 @@ export function balanced(code) {
|
|
|
144
144
|
}
|
|
145
145
|
return depth === 0 && !quoted;
|
|
146
146
|
}
|
|
147
|
-
/** `T?`, keeping an already optional type and parenthesizing a function type. */
|
|
147
|
+
/** `T?`, keeping an already optional type and parenthesizing a function or existential (`any P`) type. */
|
|
148
148
|
export function optionalType(t) {
|
|
149
149
|
if (t.endsWith('!'))
|
|
150
150
|
return t;
|
|
151
|
-
if (hasTopLevelArrow(t))
|
|
151
|
+
if (hasTopLevelArrow(t) || t.startsWith('any '))
|
|
152
152
|
return `(${t})?`;
|
|
153
153
|
return t.endsWith('?') ? t : `${t}?`;
|
|
154
154
|
}
|
|
155
|
+
/** `T!`, parenthesizing a function or existential (`any P`) type. */
|
|
156
|
+
export function implicitType(t) {
|
|
157
|
+
return hasTopLevelArrow(t) || t.startsWith('any ') ? `(${t})!` : `${t}!`;
|
|
158
|
+
}
|
|
155
159
|
const NAMES = { string: 'String', number: 'Double', boolean: 'Bool', void: 'Void', never: 'Never', any: 'Any', symbol: 'JSSymbol', bigint: 'JSBigInt' };
|
|
156
160
|
/** A native type as Swift spells it. */
|
|
157
161
|
export function spell(t) {
|
|
158
162
|
if (t.text !== undefined)
|
|
159
163
|
return t.text;
|
|
160
164
|
if (t.implicit)
|
|
161
|
-
return
|
|
165
|
+
return implicitType(t.name);
|
|
162
166
|
return t.optional ? optionalType(t.name) : t.name;
|
|
163
167
|
}
|
|
164
168
|
/** Swift's names of the types the front builds; a function type the front builds converts and never throws. */
|
|
@@ -359,10 +363,10 @@ export const SWIFT_SYNTAX = {
|
|
|
359
363
|
runtime: RT,
|
|
360
364
|
voidType: 'Void',
|
|
361
365
|
untypedType: 'Any?',
|
|
362
|
-
fnType: (params, ret) => `(${params.map((p) => (p === '() -> Void' ? `@escaping ${p}` : p)).join(', ')}) -> ${ret}
|
|
366
|
+
fnType: (params, ret) => (params.length === 0 && ret === 'Void' ? '@MainActor () -> Void' : `(${params.map((p) => (p === '@MainActor () -> Void' ? `@escaping ${p}` : p)).join(', ')}) -> ${ret}`),
|
|
363
367
|
constant: (name, type, value) => `let ${name}${type ? `: ${type}` : ''} = ${value}`,
|
|
364
368
|
closure: (params, body, onError, i) => {
|
|
365
|
-
const list = `(${params.map(([n, t]) => `${n}: ${t === '() -> Void' ? '@escaping ' : ''}${t}`).join(', ')})`;
|
|
369
|
+
const list = `(${params.map(([n, t]) => `${n}: ${t === '@MainActor () -> Void' ? '@escaping ' : ''}${t}`).join(', ')})`;
|
|
366
370
|
if (!throwsOutside(body.join('\n')))
|
|
367
371
|
return `{ ${list} -> Void in\n${body.join('\n')}\n${i}}`;
|
|
368
372
|
const deeper = body.map((l) => ' ' + l);
|
package/dist/swift/translator.js
CHANGED
|
@@ -305,16 +305,6 @@ export class Translator {
|
|
|
305
305
|
}
|
|
306
306
|
freshCounts = null;
|
|
307
307
|
programFreshCounts = new Map();
|
|
308
|
-
nested(body) {
|
|
309
|
-
const saved = this.indent;
|
|
310
|
-
this.indent += ' ';
|
|
311
|
-
try {
|
|
312
|
-
return body();
|
|
313
|
-
}
|
|
314
|
-
finally {
|
|
315
|
-
this.indent = saved;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
308
|
/** Translates a function's body: no async region or loop of the enclosing function reaches into it. */
|
|
319
309
|
inFunction(returnType, body) {
|
|
320
310
|
const refined = this.refinedVersion;
|
|
@@ -594,7 +584,7 @@ export class Translator {
|
|
|
594
584
|
return t.states;
|
|
595
585
|
},
|
|
596
586
|
readHeld: (e) => this.readHeld(e),
|
|
597
|
-
untypedRead: (code, target) => this.convert(code, 'Any?', target),
|
|
587
|
+
untypedRead: (code, target, e) => this.throwingConverts(() => this.convert(code, 'Any?', target), this.libraryThrowsHere(e), e),
|
|
598
588
|
cells: {
|
|
599
589
|
jsAny: (name) => `${name}.jsAny`,
|
|
600
590
|
present: (name, key) => this.marks.ownTried(`${name}.present(${swiftString(key)})`),
|
package/dist/swift/type-facts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Facts of Swift types: nullish storage, setters and widened parameters, declared types and shapes, and small tests of a type.
|
|
2
2
|
import ts from 'typescript';
|
|
3
|
-
import { isFunctionType, isNullish, isOptional, nullishType, optionalType, shapeName } from "./syntax.js";
|
|
3
|
+
import { implicitType, isFunctionType, isNullish, isOptional, nullishType, optionalType, shapeName } from "./syntax.js";
|
|
4
4
|
import { shapePlanOfLiteral } from "../semantics/shapes.js";
|
|
5
5
|
import { accessedDeclaration, assignedValues, wellKnownMember } from "../semantics/lang.js";
|
|
6
6
|
import { isLibDeclaration, isWriteTarget } from "../semantics/ast.js";
|
|
@@ -519,7 +519,7 @@ export const typeFactsMethods = {
|
|
|
519
519
|
const z = this.zero(t);
|
|
520
520
|
if (z)
|
|
521
521
|
return `${t} = ${z}`;
|
|
522
|
-
return
|
|
522
|
+
return implicitType(t);
|
|
523
523
|
},
|
|
524
524
|
deferred(t) {
|
|
525
525
|
const z = this.zero(t);
|
|
@@ -527,6 +527,6 @@ export const typeFactsMethods = {
|
|
|
527
527
|
return `${t} = ${z}`;
|
|
528
528
|
if (this.lenient && this.nullableRef(t) !== t)
|
|
529
529
|
return this.nullableRef(t);
|
|
530
|
-
return
|
|
530
|
+
return implicitType(t);
|
|
531
531
|
},
|
|
532
532
|
};
|
package/dist/swift/types.js
CHANGED
|
@@ -5,7 +5,7 @@ import { WEB_DICTIONARIES, webClassName } from "../semantics/globals.js";
|
|
|
5
5
|
import { SPELLING, spell, functionParts, heldType, isFunctionLiteral, isFunctionType, isMethodValue, isOptional, nullishType, optionalElementsType, optionalType, returningAny, swiftString, RT } from "./syntax.js";
|
|
6
6
|
import { literalOverArray, membersOverTypeParameter, readByKey, definedField, untypedResultBinding, untypedResultField } from "../semantics/shapes.js";
|
|
7
7
|
import { ambientAddedMemberOf, ambientBase, augmentedPropertyRead, evolvingArrayRead, evolvingArrayType, isAmbientClass, isRegExpProtocol, mergedInterfaceMemberOf, statementLevel, tokenClassBase, undeclaredMemberOf, isArguments, nullableTypeNode } from "../semantics/lang.js";
|
|
8
|
-
import { nullishSignalType } from "../semantics/signals.js";
|
|
8
|
+
import { isGivenNullSignalValue, nullishSignalType } from "../semantics/signals.js";
|
|
9
9
|
import { hasModifier, isLibDeclaration, isSymbolIterator, isWriteTarget, implementationOf, declaresThis } from "../semantics/ast.js";
|
|
10
10
|
import { isCoreDeclaration } from "../program/core-facts.js";
|
|
11
11
|
import { coreTypeKind, eventDataTypeLiteral, hasMappedIntersection, isJsDocConstructorFunction, isKit, isLibObjectType, isUntyped, libraryNativeType, libraryType, mappedOrErasedType, nonNullableInner, nonOptionalSpelling, parseNativeType, spelledType, valueModuleKind } from "../semantics/types.js";
|
|
@@ -189,7 +189,7 @@ export const typesMethods = {
|
|
|
189
189
|
return `Signal<${arg(0)}>`;
|
|
190
190
|
}
|
|
191
191
|
if (kind === 'computed')
|
|
192
|
-
return where && this.
|
|
192
|
+
return where && this.isSwiftComputedProperty(where) ? arg(0) : `Signal<${arg(0)}>`;
|
|
193
193
|
if (kind)
|
|
194
194
|
return `Signal<${arg(0)}>`;
|
|
195
195
|
const mapped = name === undefined ? undefined : this.framework.typeMapping(name);
|
|
@@ -630,7 +630,7 @@ export const typesMethods = {
|
|
|
630
630
|
if (isUntyped(spelledType(this.declaredTypeOf(n))))
|
|
631
631
|
return 'Any?';
|
|
632
632
|
}
|
|
633
|
-
if ((t === 'Bool' || t === 'String' || t === 'Double') && (this.holdsUndefined(n) || this.
|
|
633
|
+
if ((t === 'Bool' || t === 'String' || t === 'Double') && (this.holdsUndefined(n) || isGivenNullSignalValue(n, (id) => this.resolve(id), (init) => this.nullSignalRead(init)) || this.states.lenientNullField(n)))
|
|
634
634
|
return `${t}?`;
|
|
635
635
|
if (t === 'JSArray<String>' && this.unsetGroups(n))
|
|
636
636
|
return 'JSArray<String?>';
|
|
@@ -342,7 +342,7 @@ export async function writeIos(b) {
|
|
|
342
342
|
// Script is single-threaded unless the app starts workers (each in its own isolated JSRealm on a worker thread).
|
|
343
343
|
// When workers are present, disable dynamic MainActor assertions in Debug too so worker threads can run realm-isolated code.
|
|
344
344
|
const hasWorkers = !!(b.workers && b.workers.length);
|
|
345
|
-
const swiftMode = { SWIFT_VERSION: '"6"', SWIFT_DEFAULT_ACTOR_ISOLATION: 'MainActor', ...(hasWorkers ? { OTHER_SWIFT_FLAGS: '"$(inherited) -Xfrontend -disable-dynamic-actor-isolation"' } : {}) };
|
|
345
|
+
const swiftMode = { SWIFT_VERSION: '"6"', SWIFT_DEFAULT_ACTOR_ISOLATION: 'MainActor', SWIFT_UPCOMING_FEATURE_INFER_ISOLATED_CONFORMANCES: 'YES', ...(hasWorkers ? { OTHER_SWIFT_FLAGS: '"$(inherited) -Xfrontend -disable-dynamic-actor-isolation"' } : {}) };
|
|
346
346
|
// Release only: Debug keeps Swift 6's run-time isolation checks when no workers are present.
|
|
347
347
|
const swiftModeRelease = (...flags) => ` configs:\n Release:\n OTHER_SWIFT_FLAGS: "${['$(inherited)', ...(hasWorkers ? [] : ['-Xfrontend', '-disable-dynamic-actor-isolation']), ...flags].join(' ')}"\n`;
|
|
348
348
|
// The app's own Swift (App_Resources/iOS/src), compiled in the app's target, was written for Swift 5: the target keeps that mode,
|
|
@@ -622,8 +622,8 @@ export interface KotlinTranslatorView extends TranslatorView {
|
|
|
622
622
|
statics: string[];
|
|
623
623
|
};
|
|
624
624
|
}
|
|
625
|
-
/** A refusal's class:
|
|
626
|
-
export type RefusalClass = 'limit' | 'gap';
|
|
625
|
+
/** A refusal's class: fundamentally incompatible with an engine-free release (`limit`), technically possible but intentionally excluded by design (`excluded`), or not translated yet (`gap`). */
|
|
626
|
+
export type RefusalClass = 'limit' | 'excluded' | 'gap';
|
|
627
627
|
/** A kind of refusal: its title, suggestion and example, as a build's refusal report shows them. */
|
|
628
628
|
export interface RefusalKind {
|
|
629
629
|
class: RefusalClass;
|
|
@@ -636,7 +636,7 @@ export interface RefusalKind {
|
|
|
636
636
|
why?: string;
|
|
637
637
|
}
|
|
638
638
|
/** The ids of the compiler's own refusals, which a hook may refuse with too. */
|
|
639
|
-
export type CompilerRefusalId = 'proxy' | 'reflect' | 'eval' | 'function-constructor' | 'finalization-registry' | 'shared-array-buffer' | 'atomics' | 'with' | 'computed-import' | 'computed-require' | 'arguments-callee' | 'proto' | 'process-env' | 'undefined-constant' | 'shared-typed-copy' | 'shared-copy' | 'lone-surrogate' | 'generic-any-argument' | 'generic-field-overload' | 'generic-field-erased' | 'array-hole' | 'function-arguments' | 'builtin-prototype' | 'object-call' | 'library-member' | 'function-value' | 'other-receiver' | 'builtin-receiver' | 'function-new' | 'wrapper-object' | 'class-prototype' | 'function-this' | 'element-accessor' | 'private-receiver' | 'finally-jump' | 'class-expression' | 'named-function-expression' | 'unsupported-base' | '
|
|
639
|
+
export type CompilerRefusalId = 'proxy' | 'reflect' | 'eval' | 'function-constructor' | 'finalization-registry' | 'shared-array-buffer' | 'atomics' | 'with' | 'computed-import' | 'computed-require' | 'arguments-callee' | 'proto' | 'process-env' | 'undefined-constant' | 'shared-typed-copy' | 'shared-copy' | 'lone-surrogate' | 'generic-any-argument' | 'generic-field-overload' | 'generic-field-erased' | 'array-hole' | 'function-arguments' | 'builtin-prototype' | 'object-call' | 'library-member' | 'function-value' | 'other-receiver' | 'builtin-receiver' | 'function-new' | 'wrapper-object' | 'class-prototype' | 'function-this' | 'element-accessor' | 'private-receiver' | 'finally-jump' | 'class-expression' | 'named-function-expression' | 'unsupported-base' | 'delete-member' | 'index-type' | 'native' | 'internal' | 'unhandled';
|
|
640
640
|
/** The id of a refusal a build reports: the compiler's own, or its framework adapter's (`AdapterRefusalIds`). */
|
|
641
641
|
export type RefusalId = CompilerRefusalId | keyof AdapterRefusalIds;
|
|
642
642
|
/**
|
|
@@ -41,6 +41,7 @@ object CoreModules {
|
|
|
41
41
|
Core_data_virtual_array_index.__init()
|
|
42
42
|
Core_text_text_common.__init()
|
|
43
43
|
Core_file_system_index.__init()
|
|
44
|
+
Core_utils_android_runtime_version.__init()
|
|
44
45
|
Core_ui_styling_style_index.__init()
|
|
45
46
|
Core_ui_core_properties_index.__init()
|
|
46
47
|
Core_ui_styling_font_common.__init()
|